This is an extension to test package integration in Yii 2
DO NOT USE FOR PRODUCTION! Go to phundament.com if need a production ready system.
This extension is based on the great work of netyum.
Several glitches ahead!
- only tested in yii2-advanced and with MySQL so far
- issues with controller routes
- ...
-
Download Yii 2 Phundament development branch and extract or clone
git clone -b phundament https://github.com/schmunk42/yii2.git
from GitHub, and go toapps/advanced
-
Make sure you've the latest composer version.
-
Bootstrap project
php composer.phar create-project
and./init
-
Adjust your database connection in
./common/config/params.php
-
Run migrations (2 steps):
./yii migrate
./yii migrate --migrationPath=@vendor/schmunk42/yii2-blog/schmunk42/blog/migrations
-
Open
http://yii2-advanced/frontend/www/index.php?r=blog/post
to view posts. -
Open
http://yii2-advanced/frontend/www/index.php?r=blog/post/create
to create posts (login: demo / demo)
- automatic detection of migrations
- automatic detection of module(?)
- ...