Created
November 4, 2012 13:45
-
-
Save eminetto/4011979 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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\'' | |
), | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uma duvida, algum motivo para //config/autoload/global.php no inicio da linha?