Application.php
public function toRoute($route)
	{
		if ($this->caller != null)
			$this->disableRender[] = $this->caller->identifier;
		$r = $this->router->getRoute($route);
		if ($r != null) {
			$this->currentRoute = $r;
			try {
				$this->execute();
			} catch (\Exception $e) {
				Logger::Log('log/error.txt', $e->getMessage());
				\decoy\base\ErrorController::$errors[] = $e->getMessage();
				$this->toRoute('error_page');
			}
		}
		$this->caller = null;
	}
public function toRoute($route)
	{
		if ($this->caller != null)
			$this->disableRender[] = $this->caller->identifier;
		$r = $this->router->getRoute($route);
		if ($r != null) {
			$this->currentRoute = $r;
			try {
				$this->execute();
			} catch (\Exception $e) {
				Logger::Log('log/error.txt', $e->getMessage());
				\decoy\base\ErrorController::$errors[] = $e->getMessage();
				$this->toRoute('error_page');
			}
		}
		$this->caller = null;
	}
public function toRoute ( $ route ) { if ( $ this -> caller != null ) $ this -> disableRender [ ] = $ this -> caller -> identifier ; $ r = $ this -> router -> getRoute ( $ route ) ; if ( $ r != null ) { $ this -> currentRoute = $ r ; try { $ this -> execute ( ) ; } catch ( \ Exception $ e ) { Logger :: Log ( 'log/error.txt' , $ e -> getMessage ( ) ) ; \ decoy \ base \ ErrorController :: $ errors [ ] = $ e -> getMessage ( ) ; $ this -> toRoute ( 'error_page' ) ; } } $ this -> caller = null ; }
Redirecting the execution route.
This will not change the URL.
All the not fully executed instance will finish.
If you dont't want that, return after this method was called.
@param string $route
Redirecting the execution route . This will not change the URL . All the not fully executed instance will finish . If you dont t want that return after this method was called .