/** * Special class called when a method is not accessible or not exist * @param unknown $name * @param unknown $arguments */ public function __call($name, $arguments) { // Already try to execute the error? /* TODO: Control correcto de esto (si el objeto tiene un controlador especial de errores) if ($this->errorControl) ErrorManager::loadError($this->module, 404); else ErrorManager::loadErrorFromObject($this, 404);*/ ErrorManager::loadError($this->module, 404); $this->view = null; // Como ha habido un error, evitamos que se cargue la vista original (por si carga la de un error) /*$this->controller = 'errors'; $this->view = 'errors'; $this->error = Stringer::getStringBetween($name, 'e', 'Action');*/ }