Zend Framework 2 Module
CsnCms is a Content Management System module based on DoctrineORMModule
, CsnUser
authentication and CsnAuthorization
.
CsnCms has been created with educational purposes to demonstrate how CMS can be done. It is fully functional, working in perfect harmony with Doctrine and the other Csn modules.
-
Installation via composer is supported, simply run (make sure you've set
"minimum-stability": "dev"
in your composer.json file):php composer.phar require coolcsn/csn-cms:dev-master
-
Configure referenced modules (CsnUser and CsnAuthorization) following their instructions.
-
Add 'CsnCms' to your application configuration in
config/application.config.php
. An example application configuration could look like the following:
'modules' => array(
'Application',
'DoctrineModule',
'DoctrineORMModule',
'CsnUser',
'CsnAuthorization',
'CsnCms'
)
- Run
./vendor/bin/doctrine-module orm:schema-tool:update
to update the database schema (Note: You may need to force the update by adding--force
to the command). Then import the sample data located in./vendor/coolcsn/CsnCms/data/SampleData.sql
. You can easily do that with PhpMyAdmin for instance.
Navigate to [hostname]/csn-cms. Enjoy :)
This Module depends on the following Modules:
- DoctrineORMModule
- CsnUser
- CsnAuthorization
- coolcsn/CsnUser - Authentication (login, registration) module.
- coolcsn/CsnAuthorization - Authorization module.
- coolcsn/CsnAclNavigation - Navigation module;