src/Panda/Views/Viewer.php
public function load($name, $extension = 'html')
    {
        // Get view file path
        $this->view = $this->getViewFilePath($name, $extension);

        // Check if there is a valid view
        if (empty($this->view)) {
            throw new InvalidArgumentException(__METHOD__ . sprintf(': The view file [%s] is a not valid view.', $this->getViewFile($name, $extension)));
        }

        return $this;
    }
public function load($name, $extension = 'html')
    {
        // Get view file path
        $this->view = $this->getViewFilePath($name, $extension);

        // Check if there is a valid view
        if (empty($this->view)) {
            throw new InvalidArgumentException(__METHOD__ . sprintf(': The view file [%s] is a not valid view.', $this->getViewFile($name, $extension)));
        }

        return $this;
    }
public function load ( $ name , $ extension = 'html' ) { // Get view file path $ this -> view = $ this -> getViewFilePath ( $ name , $ extension ) ; // Check if there is a valid view if ( empty ( $ this -> view ) ) { throw new InvalidArgumentException ( __METHOD__ . sprintf ( ': The view file [%s] is a not valid view.' , $ this -> getViewFile ( $ name , $ extension ) ) ) ; } return $ this ; }
Load a view.

@param string $name
@param string $extension

@return $this
@throws InvalidArgumentException
Load a view .