/** * Execute action * @param Array $route array with call attributes as controller, module, action, params, disableLayout etc. * @param Bool $autoRender render action after call (not wait controller destroy action) */ public function executeRequest(&$route, $autoRender = false, $checkAcl = true) { if (is_array($route)) { if ($checkAcl && $route['module'] == 'admin') { K_Access::accessSite($route); } // echo '$this->controller = new '.ucfirst($route['module']).'_Controller_'.ucfirst($route['controller']).'( $route );'; eval('$this->controller = new ' . ucfirst($route['module']) . '_Controller_' . ucfirst($route['controller']) . '( $route );'); $this->controller->options($route); $this->controller->run($route['action'], null, $autoRender); } }