Example of ZF2 + Doctrine application.
Admin: [email protected]
User: [email protected]
Pass: demo
Note: Application active development.
AdminLTE theme for admin pages
- Articles admin pages (list, add, edit)
- User admin pages (list, add, edit, view)
- ACL, user roles and pemissions
- Fix password hash generating
- Move file save path to config per entity
- Drag-n-drop upload, multi-upload
git clone [email protected]:zviryatko/blog-example.git blog-example
cd blog-example
Install phing with git support:
composer global require phing/phing
And install via:
phing install
composer update
mysql -u root -p -e "CREATE DATABASE zf2_blog CHARACTER SET utf8 COLLATE utf8_general_ci;"
cp config/autoload/doctrine.orm.local.php.dist config/autoload/doctrine.orm.local.php
vim config/autoload/doctrine.orm.local.php
./vendor/bin/doctrine-module orm:schema-tool:create
Go to Run > Edit Configurations
, click on green sign and fill like in screenshot:
After saving start web server Run > Run 'Local w/Xdebug'
.
The simplest way to get started if you are using PHP 5.4 or above is to start the internal PHP cli-server in the root directory:
php -S 0.0.0.0:8080 -t public/ public/index.php
This will start the cli-server on port 8080, and bind it to all network interfaces.
Note: The built-in CLI server is for development only.