#CASE preconfigured ZendSkeletonApplication
##Introduction
This is a simple, skeleton application using the ZF2 MVC layer and module systems. This Sekleton have some other modules preconfigured for CASE Design, like Doctrine, ZfcUser, etc.
##Installation
##Using Composer (recommended)
Clone the repository and manually invoke composer
using the shipped
composer.phar
:
cd my/project/dir
git clone git://github.com/AV4TAr/ZendSkeletonApplication.git
cd ZendSkeletonApplication
php composer.phar self-update
php composer.phar install
(The self-update
directive is to ensure you have an up-to-date composer.phar
available.)
You would then invoke composer
to install dependencies per the previous example.
This will install:
- DoctrineModule & DoctrineORMModule
- ZfcBase & ZfcUser: https://github.com/ZF-Commons/ZfcUser
- ZfcUserDoctrineORM
- CASEBase
- CASEAdmin
##Web Server Setup
To setup apache, setup a virtual host to point to the public/ directory of the project and you should be ready to go! It should look something like below:
<VirtualHost *:80>
ServerName application.dev
DocumentRoot /path/to/zf2-application/public
SetEnv APPLICATION_ENV "development"
<Directory /path/to/zf2-application/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
##Application Setup
Copy
/config/autoload/local.php.dist
to
/config/autoload/local.php
and update the params sub-array
'params' => array (
'host' => 'localhost',
'port' => '3306',
'user' => 'root',
'password' => 'root',
'dbname' => 'database'
)
Update the database schema using cli running migrations:
$ ./vendor/bin/doctrine-module migrations:migrate
###Development mode
Copy
/config/development.config.php.dist
to
/config/development.config.php
That will activate ZFTool and the ZendDevloperTools bar.
##Diagnostics
- Module: CASEBaseDiagnostics
- Check diagnostics: http://application/diagnostics
##Error Handling
- Zf2Whoops
- 'Zf2Whoops', // must be added as the first module in the development.config.php file
- copy zf2-whoops.local.php.dist to zf2-whoops.local.php in /config/autoload
#Features
- User Management
- Admin panel /admin
##Doing
- ZendDiagnostics with base tests
- Disk space
##TODO
- ZendDiagnostics with base tests
- Disk space
- Default role for new users
- Done through migration?
- check https://github.com/darkmatus/roleuserbridge
- User Crud
- Integrate Navication to Application
- Move migrations to specific modules so that somebody can deactivate zfcuser?
- Generate autoloadres
- Application LOG
- Application CACHE