protected function getTemplate($template, $name)
    {
        $this->template = $this->file->get($template);

        if ($this->needsScaffolding($template))
        {
            return $this->getScaffoldedTemplate($name);
        }

        // Otherwise, just set the file
        // contents to the file name
        return $name . PHP_EOL;
    }
protected function getTemplate($template, $name)
    {
        $this->template = $this->file->get($template);

        if ($this->needsScaffolding($template))
        {
            return $this->getScaffoldedTemplate($name);
        }

        // Otherwise, just set the file
        // contents to the file name
        return $name . PHP_EOL;
    }
protected function getTemplate ( $ template , $ name ) { $ this -> template = $ this -> file -> get ( $ template ) ; if ( $ this -> needsScaffolding ( $ template ) ) { return $ this -> getScaffoldedTemplate ( $ name ) ; } // Otherwise, just set the file // contents to the file name return $ name . PHP_EOL ; }
Fetch the compiled template for a view

@param  string $template Path to template
@param  string $name
@return string Compiled template
Fetch the compiled template for a view