public function view($filename)
    {
        $serialized = false;

        if ($this->request->getQuery('as') === 'serialized') {
            $serialized = true;
            $this->viewBuilder()->setTemplate('view_as_serialized');
        }

        $content = $this->read($filename, $serialized);

        $this->set(compact('content', 'filename'));
    }
public function view($filename)
    {
        $serialized = false;

        if ($this->request->getQuery('as') === 'serialized') {
            $serialized = true;
            $this->viewBuilder()->setTemplate('view_as_serialized');
        }

        $content = $this->read($filename, $serialized);

        $this->set(compact('content', 'filename'));
    }
public function view ( $ filename ) { $ serialized = false ; if ( $ this -> request -> getQuery ( 'as' ) === 'serialized' ) { $ serialized = true ; $ this -> viewBuilder ( ) -> setTemplate ( 'view_as_serialized' ) ; } $ content = $ this -> read ( $ filename , $ serialized ) ; $ this -> set ( compact ( 'content' , 'filename' ) ) ; }
Views a log
@param string $filename Filename
@return void
@uses read()
Views a log