src/Controller.php
static function pageAction($uri)
    {
        $write = R::is('POST') and R::get('confirm');
        $page = page($uri);
        $builder = new Builder();
        $data = [
            'mode'    => 'page',
            'error'   => false,
            'confirm' => $write,
            'summary' => []
        ];
        if (!$page) {
            $data['error'] = "Error: Cannot find page for \"$uri\"";
        }
        else {
            $builder->run($page, $write);
            $data['summary'] = $builder->summary;
        }
        return $builder->htmlReport($data);
    }
static function pageAction($uri)
    {
        $write = R::is('POST') and R::get('confirm');
        $page = page($uri);
        $builder = new Builder();
        $data = [
            'mode'    => 'page',
            'error'   => false,
            'confirm' => $write,
            'summary' => []
        ];
        if (!$page) {
            $data['error'] = "Error: Cannot find page for \"$uri\"";
        }
        else {
            $builder->run($page, $write);
            $data['summary'] = $builder->summary;
        }
        return $builder->htmlReport($data);
    }
static function pageAction ( $ uri ) { $ write = R :: is ( 'POST' ) and R :: get ( 'confirm' ) ; $ page = page ( $ uri ) ; $ builder = new Builder ( ) ; $ data = [ 'mode' => 'page' , 'error' => false , 'confirm' => $ write , 'summary' => [ ] ] ; if ( ! $ page ) { $ data [ 'error' ] = "Error: Cannot find page for \"$uri\"" ; } else { $ builder -> run ( $ page , $ write ) ; $ data [ 'summary' ] = $ builder -> summary ; } return $ builder -> htmlReport ( $ data ) ; }
Similar to siteAction but for a single page.
@param $uri
@return Response
Similar to siteAction but for a single page .