from a path.
function($path = '', array $data = NULL, $encapsulated = true)
{
$params = func_get_args();
// The model can be set as first argument if the path is default
if (\is_array($path)) {
// In which case the second argument, if defined, is $encapsulated
if (array_key_exists(1, $params)) {
$encapsulated = $data;
}
$data = $path;
$path = '';
}
if ($r = $this->getView($path, 'js', $data)) {
return '';
}
return false;
}