$config = new stdClass;
$config->debug = true;
$config->defaultController = 'Index';
$config->defaultMethod = 'Index';
/* Database Connection String, Username, Password and init Command
If you dont need init command comment it out */
$config->dbHost = 'mysql:host=127.0.0.1;dbname=test;port=3306';
$config->dbUser = 'root';
$config->dbPass = 'root';
$config->dbInitCmd = 'SET NAMES \'UTF8\'';
/**
* Set to false if you wish to manage the instances of
* Models, Libraries, ServiceLayers, Helpers
* yourself instead of the registry storing them
*/
$config->appRegistry = true;
/* To enable sessions to be stored within the Application folder
uncomment this line and create a folder /AppName/Sessions */
//$config->sessionClass = 'SessionHandler';
/* Example of Rewrites */
$config->rewrites = array(
'pattern' => array(
'/^profile\/(.*?)/i',
'/^news\/(.*?)\/([0-9]{1,11}$)/i',
'/^topic\/(.*?)\/([0-9]{1,11}$)/i',
),
'replacement' => array(
'profile/index/$1',
'news/article/$1/$2',
'news/topic/$1/$2',
),
);
VirtualHosts
/*
To use Virtuahosts you need to copy the /index/ and rename it to your domain name i.e.
Facebook.com => FacebookCom
Gsdev.me => GsdevMe
Foobar.com => FoobarCom
Foobar.co.uk => FoobarCoUk
*/
Cookies help us deliver our services. By using our services, you agree to our use of cookies
Learn more