<?php
/**
* \file config.php
* \name Configuration
*/
/**
* Currently avaibles drivers:
* - mysql
* - pdo/mysql
* - pdo/pgsql
*
* if want to use à specific pgsql shema (default: public)
* conf::set('database.schema','mySchema');
*/
conf::set('database',
array(
'host' => 'localhost',
'login' => 'groux',
'password' => '',
'database' => 'groux',
'driver' => 'mysql'
)
);
/**
* Can be:
* 0 : Production : no error displayed
* 1 : Developement : Only Errors, pr() & debug()
* 2 : Developement : + Warnings, additional debug Infos
* 3 : More Debug : + Notices
*/
conf::set( 'debug', 2 );
/**
* Error reporting level is automaticaly managed regarding to debug level.
* However, you can decide to overide it manualy by uncomenting the fellowing line:
*/
// conf::set('error.reporting', E_ALL ^ E_NOTICE );
/**
* message to print when an error happen in prod (debug 0)
* Set it false to disable it.
* Fellow it's div class attribute.
*/
conf::set( 'error.prodMessage','Désolé, une érreur est survenue.');
conf::set( 'error.prodMessageClass','groux-prod-error-div');
/**
* Can be:
* false : normal debug message.
* true : links wich open js alert popup w/ message.
* clickable : links which unroll hidden message.
*/
conf::set( 'error.debug_use_js', 'clickable' );
/**
* Routes configuration.
*
* Arguments are:
* first, the url as: /[controller[/action]]
* then, the destination is an array containing:
* first: 'controller' | 'static' => controller | staticDir | file
* second (optional): [ 'action' | 'page' | 'file' => action, page, or filename ]
*
* Here are some exemples:
* Router::add( '/commentaires',array('controller' => 'grouhmour', 'action' => 'index'));
* Router::add( '/tags/view', array('static' => 'pages' ));
* Router::add( '/trucs', array('controller' => 'grouhmour' ));
*/
Router::add( '/', array('static' => 'pages', 'page' => 'home' ));
Router::add( '/pages', array('static' => 'pages' ));
/**
* Please update this value with something uniq like a md5 hash.
* This will be used i.e. for sessions.
*/
Conf::set('uniqKey', 'pleaseChangeMe');