getExtensionConfiguration() as $extname=>$extconf) { $filename = $settings->_rootDir.'ext/'.$extname.'/controllers/class.'.$class.".php"; if(file_exists($filename)) { break; } $filename = ''; } if(!$filename) $filename = $settings->_rootDir."controllers/class.".$class.".php"; if(!file_exists($filename)) $filename = ''; if($filename) { require_once($filename); $controller = new $classname($params); /* Set some configuration parameters */ $controller->setParam('postVars', $_POST); $controller->setParam('getVars', $_GET); $controller->setParam('requestVars', $_REQUEST); $controller->setParam('session', $session); $controller->setParam('request', $request); $controller->setParam('settings', $settings); $controller->setParam('logger', $logger); $controller->setParam('notifier', $notifier); return $controller; } return null; } /* }}} */ }