/** * @param Route $route * @param boolean $redirected (optional) */ public function loadRequest(Route $route, $redirected = false) { if ($redirected === true) { //Reset action when redirecting $this->_action = false; } else { $method = $this->getRequestMethod(); $this->_data = $this->loadData($method); $this->_files = $this->loadFiles(); if ($route->hasActions()) { $actions = $route->getActions(); if (array_key_exists($method, $actions)) { $this->_action = $actions[$method]; } } } }