|
|
This post has NOT been accepted by the mailing list yet.
This post was updated on .
Hello,
I'm first time using phpcloud with ZF2 stable.
How do i change config/autoload/global.php file for using with phpcloud ?
I'm using following code. But It's not working.
return array(
'db' => array(
'driver' => 'Pdo',
'dsn' => 'mysql:dbname=chintan;hostname=chintan-db.my.phpcloud.com',
'username' => 'chintan',
'password' => '',
'port' => '3306',
'driver_options' => array(
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'UTF8\''
),
),
'service_manager' => array(
'factories' => array(
'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory',
),
),
);
Thanks,
Chintan V. Patel
|