public function loadTemplate($template, $data = array(), $process = true)
    {
        $path = $this->findTemplate($template);

        if (! $path) {
            unset($this->_paths[$template.'.php']);
            throw new LibBaseTemplateException($template.' template not found for '.$this->getIdentifier());
            return false;
        }

        return $this->loadFile($path, $data, $process);
    }
public function loadTemplate($template, $data = array(), $process = true)
    {
        $path = $this->findTemplate($template);

        if (! $path) {
            unset($this->_paths[$template.'.php']);
            throw new LibBaseTemplateException($template.' template not found for '.$this->getIdentifier());
            return false;
        }

        return $this->loadFile($path, $data, $process);
    }
public function loadTemplate ( $ template , $ data = array ( ) , $ process = true ) { $ path = $ this -> findTemplate ( $ template ) ; if ( ! $ path ) { unset ( $ this -> _paths [ $ template . '.php' ] ) ; throw new LibBaseTemplateException ( $ template . ' template not found for ' . $ this -> getIdentifier ( ) ) ; return false ; } return $ this -> loadFile ( $ path , $ data , $ process ) ; }
Loads a template by first trying to find the template file.

@param string $template Template name
@param array  $data     Template data
@param bool   $process  If TRUE process the data using a tmpl stream. Default TRUE.

@return string
Loads a template by first trying to find the template file .