public function display() {
		
		$view = $this->getView();

		if (is_subclass_of($view, 'Pair\View')) {
			$view->display();
		} else {
			if (!$this->router->isRaw()) {
				$this->enqueueError($this->translator->get('RESOURCE_NOT_FOUND', $this->router->module . '/' . $this->router->action));
			}
			$this->redirect($this->router->module);
		}
		
	}
public function display() {
		
		$view = $this->getView();

		if (is_subclass_of($view, 'Pair\View')) {
			$view->display();
		} else {
			if (!$this->router->isRaw()) {
				$this->enqueueError($this->translator->get('RESOURCE_NOT_FOUND', $this->router->module . '/' . $this->router->action));
			}
			$this->redirect($this->router->module);
		}
		
	}
public function display ( ) { $ view = $ this -> getView ( ) ; if ( is_subclass_of ( $ view , 'Pair\View' ) ) { $ view -> display ( ) ; } else { if ( ! $ this -> router -> isRaw ( ) ) { $ this -> enqueueError ( $ this -> translator -> get ( 'RESOURCE_NOT_FOUND' , $ this -> router -> module . '/' . $ this -> router -> action ) ) ; } $ this -> redirect ( $ this -> router -> module ) ; } }
Include the file for View formatting. Display an error message and
redirect to default view as fallback in case of view not found for non-ajax requests.
Include the file for View formatting . Display an error message and redirect to default view as fallback in case of view not found for non - ajax requests .