https://github.com/s-me/album
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/s-me/album
- Owner: S-Me
- Created: 2016-07-01T01:59:42.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-01T02:48:37.000Z (almost 10 years ago)
- Last Synced: 2024-06-20T23:44:45.982Z (almost 2 years ago)
- Language: PHP
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zf2 album with doctrine2 ORM
This is a simple module from zf2 doc tutorial with doctrine2 ORM
# Install
clone the module to your application
add new file named doctrine.local.php to config\autoload if not exists, (config\autoload\doctrine.local.php)
add this :
array(
'connection' => array(
'orm_default' => array(
'driverClass' =>'Doctrine\DBAL\Driver\PDOMySql\Driver',
'params' => array(
'host' => 'localhost',
'port' => '3306',
'user' => 'your-username',
'password' => 'your_password',
'dbname' => 'your_database',
)))));
add this key 'Album' to application.config.php.