function Platal()
{
+ $modules = func_get_args();
$this->path = trim(Get::_get('p', null), '/');
$this->__mods = array();
$this->__hooks = array();
- foreach (glob(dirname(__FILE__).'/../modules/*.php') as $module) {
- $module = basename($module, '.php');
+ foreach ($modules as $module) {
$m =& PLModule::factory($this, $module);
$this->__mods[$module] =& $m;
$this->__hooks += $m->handlers();
require_once dirname(__FILE__).'/../classes/Platal.php';
require_once dirname(__FILE__).'/../classes/PLModule.php';
-$platal = new Platal();
+$platal = new Platal('auth', 'banana', 'carnet', 'core', 'email', 'events',
+ 'geoloc', 'marketing', 'payment', 'platal', 'profile',
+ 'register', 'search', 'stats', 'trezo');
$platal->run();
?>