A Skelleton Application with configured ZF 2, Doctrine 2, ZfcUser, BjyAuthorize and Bower
- Copy
config/autoload/local.php.dist
toconfig/autoload/local.php
- Edit the new file and enter your MySQL data
The Document root is public/
. Example Apache config:
<VirtualHost *:80>
DocumentRoot "/var/www/fsmpivideo/public"
ServerName fsmpivideo.localhost
<Directory "/var/www/fsmpivideo/public">
DirectoryIndex index.php
AllowOverride All
Order allow,deny
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
Allow from all
</Directory>
</VirtualHost>
Dont forget to enable mod_rewrite
- Open Commandline
- Navigate to your cloned repository
- run
bower install
- run
php composer.phar install
- run
php vendor/bin/doctrine-module orm:schema-tool:create
- run
php vendor/bin/doctrine-module data-fixture:import
- run
php public/index.php bower prepare-packs
- The user state is a bitmask
- Activated: $user->getState & (1 << 0) !== 0
- E-Mail verified: $user->getState & (1 << 1) !== 0