pchela / events
Zend Framework 2 事件模块
dev-master
2016-08-22 14:03 UTC
Requires
- php: >=5.3.3
- doctrine/doctrine-orm-module: 0.*
This package is not auto-updated.
Last update: 2024-09-24 19:10:24 UTC
README
要求
- 数据库
- PHP 版本 >= 5.4.28
- PHP intl 扩展
安装
$ cd DIR_PROJECT
$ composer require pchela/events:dev-master
设置
填写指定的数据库参数
//DIR_PROJECT/config/autoload/local.php return array( 'doctrine' => array( 'connection' => array( // default connection name 'orm_default' => array( 'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver', 'params' => array( 'host' => 'DBHOST', 'port' => 'DBPORT', 'user' => 'DBUSER', 'password' => 'USERPASSWORD', 'dbname' => 'DBNAME', ) ) ) ), );
在 application.config.php 中启用模块
return array(
'modules' => array(
// other modules
'DoctrineModule',
'DoctrineORMModule',
'Events',
),
// other content
);
创建数据库模式
$ cd DIR_PROJECT
$ php vendor/bin/doctrine-module orm:schema-tool:create