protected function _init()
 {
     parent::_init();
     $this->view = new Output($this);
     $this->view->viewsFolder = __DIR__ . '/views';
     $this->view->viewLayout = __DIR__ . '/views/_layout';
     $this->view->assign('app', $this);
 }
 protected function isCallableActionFunction(ROWController $application, $actionInfo)
 {
     if ($actionInfo) {
         $action = $actionInfo['action'];
         $arguments = $actionInfo['arguments'];
         $actions = $application->_getActionFunctions();
         if (in_array(strtolower($action), $actions)) {
             $refl = new \ReflectionClass($application);
             $method = $refl->getMethod($action);
             $required = $method->getNumberOfRequiredParameters();
             return $required <= count($arguments);
         }
     }
 }