protected function getTemplate($template, $className)
    {
        $this->template = $this->file->get($template);
        $resource = strtolower(Pluralizer::plural(
            str_ireplace('Controller', '', $className)
        ));

        if ($this->needsScaffolding($template))
        {
            $this->template = $this->getScaffoldedController($template, $className);
        }

        $template = str_replace('{{className}}', $className, $this->template);

        return str_replace('{{collection}}', $resource, $template);
    }
protected function getTemplate($template, $className)
    {
        $this->template = $this->file->get($template);
        $resource = strtolower(Pluralizer::plural(
            str_ireplace('Controller', '', $className)
        ));

        if ($this->needsScaffolding($template))
        {
            $this->template = $this->getScaffoldedController($template, $className);
        }

        $template = str_replace('{{className}}', $className, $this->template);

        return str_replace('{{collection}}', $resource, $template);
    }
protected function getTemplate ( $ template , $ className ) { $ this -> template = $ this -> file -> get ( $ template ) ; $ resource = strtolower ( Pluralizer :: plural ( str_ireplace ( 'Controller' , '' , $ className ) ) ) ; if ( $ this -> needsScaffolding ( $ template ) ) { $ this -> template = $ this -> getScaffoldedController ( $ template , $ className ) ; } $ template = str_replace ( '{{className}}' , $ className , $ this -> template ) ; return str_replace ( '{{collection}}' , $ resource , $ template ) ; }
Fetch the compiled template for a controller

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