lithium\template\view\adapter\File::template()
Returns a template file name
Parameters
-
string
$type
-
array
$params
Returns
stringSource
public function template($type, array $params) {
$library = Libraries::get(isset($params['library']) ? $params['library'] : true);
$params['library'] = $library['path'];
$path = $this->_paths($type, $params);
if ($this->_compile) {
$compiler = $this->_classes['compiler'];
$path = $compiler::template($path, $this->_config['compiler']);
}
return $path;
}