public function setAction() { showtime("---"); // action if (empty($this->action)) { if ($this->router->Dispatch('action') !== null) { $this->view->assign('action', strtolower($this->router->Dispatch('action'))); } $this->action = ActionFactory::Factory($this->controller); if ($this->modules['module'] == 'login') { $actions = array('index', 'password', 'requestpassword', 'login', 'logout'); if (!in_array(strtolower($this->action), $actions)) { $this->action = 'index'; } } } $this->controller->setTemplateName($this->action); }