/** * Trigger a controller according the act param from the url * * @param string $act */ public function connectToController($act) { $act = ucfirst($act); if (!empty($act)) { $controllerName = __NAMESPACE__ . '\\' . $act . 'Controller'; if (!$controllerName && !class_exists($controllerName)) { return; } // instantiate the view specific controller $objController = new $controllerName($this->getSystemComponentController(), $this->cx); } else { // instantiate the default View Controller $objController = new DefaultController($this->getSystemComponentController(), $this->cx); } $objController->parsePage($this->template); }