Controller/Component/PermitComponent.php
public function startup(Controller $controller) {
		if ($this->settings['isTest']) {
			return;
		}

		foreach ($this->routes as $route) {
			if (!$this->_parse($route['route'])) {
				continue;
			}

			if (!$this->_execute($route)) {
				break;
			}

			$this->Session->write('Sanction.referer', $this->request->here());
			return $this->redirect($controller, $route);
		}
	}
public function startup(Controller $controller) {
		if ($this->settings['isTest']) {
			return;
		}

		foreach ($this->routes as $route) {
			if (!$this->_parse($route['route'])) {
				continue;
			}

			if (!$this->_execute($route)) {
				break;
			}

			$this->Session->write('Sanction.referer', $this->request->here());
			return $this->redirect($controller, $route);
		}
	}
public function startup ( Controller $ controller ) { if ( $ this -> settings [ 'isTest' ] ) { return ; } foreach ( $ this -> routes as $ route ) { if ( ! $ this -> _parse ( $ route [ 'route' ] ) ) { continue ; } if ( ! $ this -> _execute ( $ route ) ) { break ; } $ this -> Session -> write ( 'Sanction.referer' , $ this -> request -> here ( ) ) ; return $ this -> redirect ( $ controller , $ route ) ; } }
Main execution method.  Handles redirecting of invalid users, and saving
of request url as Sanction.referer

@param object $controller A reference to the instantiating controller object
@return bool
Main execution method . Handles redirecting of invalid users and saving of request url as Sanction . referer