How to connect DB in zf3 Reviewed by Momizat on . First download Zf3:- https://github.com/julianophp/zf3-skeleton-album 1.change config/autoload/global.php [php] 'db' => [ 'driver' => 'Pdo', 'dsn' => ' First download Zf3:- https://github.com/julianophp/zf3-skeleton-album 1.change config/autoload/global.php [php] 'db' => [ 'driver' => 'Pdo', 'dsn' => ' Rating: 0

How to connect DB in zf3

First download Zf3:-

https://github.com/julianophp/zf3-skeleton-album

1.change config/autoload/global.php

'db' => [
        'driver' => 'Pdo',
        'dsn' => 'mysql:dbname=zf3;hostname=localhost',
        'driver_options' => [
            PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'UTF8\''
        ]

2. change config/autoload/development.local.php

'db' => [
         'username' => 'root', 
         'password' => 'root', 
    ],

Comments (1)

Leave a Comment

© 2014 Powered By