GithubHelp home page GithubHelp logo

pg's Introduction

PG

Ce projet est le theme de demo de PlaygroundCMS. La documentation sur PlaygroundCMS se trouve ici.

Installation

GitHub

git clone https://github.com/thomaroger/PG.git pgcms
cd pgcms

Mise en place

php composer.phar install

Virtualhost

<VirtualHost *:80>
    ServerName dev.pgcms.fr
    ServerAlias pgcms.local
    DocumentRoot <pathtopgcmspublic>
    SetEnv APPLICATION_ENV "development"
    <Directory <pathtopgcmspublic>>
        DirectoryIndex index.php
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

Htaccess

Il faut créer un htaccess dans le dossier public

touch public/.htaccess

et mettre le contenu suivant dans le htaccess

RewriteEngine On
RewriteBase /

RedirectMatch permanent ^/$ /fr_fr/index-1.html

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L] 

Base de données

Vous pouvez configurer l'accès à votre base de données dans le dossier config/autoload

cp config/autoload/local.php.dist config/autoload/local.php

Le fichier local.php permet de configurer l'accès à la base

$dbParams = array(
    'database'  => '<nomdelabase>',
    'username'  => '<utilisateur>',
    'password'  => '<motdepasse>',
    'hostname'  => '<host>',
    'port'      => '<port>',
    'charset'   => 'utf8',
    'driverOptions' => array(
        1002 => 'SET NAMES utf8',
    ),
);

Vous avez une base de démo dans le fichier pgcms.sql

mysql <nomdelabase> < pgcms.sql

Dépendances

Dépendances requises

"php" : ">=5.3.3",
"zendframework/zendframework" : "2.*",
"playground/core" : "2.*",
"playground/user" : "2.*",
"playground/design" : "2.*",
"playground/cms2" : "dev-develop",
"playground/publishing" : "dev-develop",
"playground/hybridauth" : "dev-master",
"doctrine/doctrine-orm-module" : "0.8.*@dev",
"doctrine/doctrine-module" : "0.8.*@dev",
"bjyoungblood/bjy-authorize" : "1.1.*",
"doctrine/data-fixtures" : "dev-master",
"zendframework/zend-developer-tools" : "dev-master",
"ocramius/ocra-cached-view-resolver" : "1.0.*",
"hounddog/doctrine-data-fixture-module" : "0.*",
"jhuet/zdt-logger-module" : "0.*"

Dépendances requises en mode dev

"phpunit/phpunit" : "3.7.*",
"satooshi/php-coveralls" : "dev-master"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.