1. Download zend framework 2 and install.
2. Download and install doctrine.
3. Add tool debug
3. Add tool debug
Start.
1. Go to githup download application of zend framework 2: https://github.com/zendframework/ZendSkeletonApplication I think you should install and get by GIT, this will help you install and update easy.
- Install Zend Frame work 2
php composer.phar install
Lưu ý: Trước khi gọi lệnh trên bạn phải có setup biến php, git, hg trên hệ điều hành của bạn.
2. Download and install doctrine
Call command line to download and install doctrine.
php composer.phar require doctrine/doctrine-orm-module:0.7.*
After run success. go to /composer.json you will see "doctrine/doctrine-orm-module": "0.7.*" in required.
- Open config/application.config.php add 2 modules in this file.
'modules' => array(
'Application',
'DoctrineModule',
'DoctrineORMModule'
)
Now you can use doctrine in zf2. (You can check setup success in /vendor folder). You will see some folders: composer, doctrine, symfony, zendframework.
In /vendor/doctrine folder you see 2 folders: doctrine-module and doctrine-orm-module.
3. Add tool debug doctrine.
Call command line
php composer.phar require zendframework/zend-developer-tools:dev-master
To install debug.
- Copy /vendor/zendframework/zend-developer-tool/config/zenddevelopertools.local.php to /config/autoload/zdt.local.php
- Enable module in /config/application.config.php.
'modules' => array(
'ZendDeveloperTools',
'DoctrineModule',
'DoctrineORMModule',
'Application',
'Cms'
)
You should see.
3. Add tool debug doctrine.
Call command line
php composer.phar require zendframework/zend-developer-tools:dev-master
To install debug.
- Copy /vendor/zendframework/zend-developer-tool/config/zenddevelopertools.local.php to /config/autoload/zdt.local.php
- Enable module in /config/application.config.php.
'modules' => array(
'ZendDeveloperTools',
'DoctrineModule',
'DoctrineORMModule',
'Application',
'Cms'
)
You should see.
Good luck to you!
No comments:
Post a Comment