Thursday, November 29, 2012

More code Snippets for FuelPHP


config.php

return array(
'always_load'  => array('packages'  => array('orm', 'auth',)),

'whitelisted_classes' => array(
'Fuel\\Core\\Response',
'Fuel\\Core\\View',
'Fuel\\Core\\ViewModel',
'Fuel\Core\Validation',
'Closure',
)


);



db.php


return array(
'default' => array(
'connection'  => array(
'dsn'        => 'mysql:host=localhost;dbname=shop',
'username'   => 'root',
'password'   => '',
),
),
);




No comments:

Post a Comment