Skip to content

Instantly share code, notes, and snippets.

@eminetto
Created November 4, 2012 13:45
Show Gist options
  • Save eminetto/4011979 to your computer and use it in GitHub Desktop.
Save eminetto/4011979 to your computer and use it in GitHub Desktop.
//config/autoload/global.php
<?php
return array(
'service_manager' => array(
'factories' => array(
'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory',
),
),
'db' => array(
'driver' => 'Pdo',
'dsn' => 'mysql:dbname=zf2napratica;host=localhost',
'driver_options' => array(
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'UTF8\''
),
));
@lpgpa
Copy link

lpgpa commented Sep 16, 2015

Uma duvida, algum motivo para //config/autoload/global.php no inicio da linha?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment