Exemplo n.º 1
0
 /**
  * Runs action
  * @return boolean
  */
 function run()
 {
     if (file_exists('actions/' . $this->sAction['action'] . '.php')) {
         require_once 'actions/' . $this->sAction['action'] . '.php';
     } else {
         ErrorProcessor::generateError('Action Not Found ;]');
         return false;
     }
     $name = explode('/', $this->sAction['action']);
     $action = new $name[1]();
     return ViewManager::makeView($action->perform(), $this->sAction);
 }