public function handle()
    {
        $this->params = $this->getParams();

        $request = substr($this->request->getRequestUri(), strlen($this->request->getBaseUrl()) + 1);

        if (substr($request, 0, 7) == 'themes/') {
            return $this->serveTheme(substr($request, 6));
        }

        if ($request == '') {
            $request = $this->daux->tree->getIndexPage()->getUri();
        }

        return $this->getPage($request);
    }
public function handle()
    {
        $this->params = $this->getParams();

        $request = substr($this->request->getRequestUri(), strlen($this->request->getBaseUrl()) + 1);

        if (substr($request, 0, 7) == 'themes/') {
            return $this->serveTheme(substr($request, 6));
        }

        if ($request == '') {
            $request = $this->daux->tree->getIndexPage()->getUri();
        }

        return $this->getPage($request);
    }
public function handle ( ) { $ this -> params = $ this -> getParams ( ) ; $ request = substr ( $ this -> request -> getRequestUri ( ) , strlen ( $ this -> request -> getBaseUrl ( ) ) + 1 ) ; if ( substr ( $ request , 0 , 7 ) == 'themes/' ) { return $ this -> serveTheme ( substr ( $ request , 6 ) ) ; } if ( $ request == '' ) { $ request = $ this -> daux -> tree -> getIndexPage ( ) -> getUri ( ) ; } return $ this -> getPage ( $ request ) ; }
Handle an incoming request

@return \Todaymade\Daux\Format\Base\Page
@throws Exception
@throws NotFoundException
Handle an incoming request