You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.
* @param mixed $_tpl template, can either be a ITemplate object (i.e. TemplateFile), a
* valid path to a template, or a template as a string it is recommended to
* provide a ITemplate as it will probably make things faster, especially if
* you render a template multiple times
Code that handles the template parameter
if ($_tplinstanceof ITemplate) {
// valid, skip
} elseif (is_string($_tpl)) {
$_tpl = newTemplateFile($_tpl);
$_tpl->setIncludePath($this->getTemplateDir());
} else {
thrownewException('Dwoo->get\'s first argument must be a ITemplate (i.e. TemplateFile) or a valid path to a template file', E_USER_NOTICE);
}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The file: https://github.com/dwoo-project/dwoo/blob/master/lib/Dwoo/Core.php#L301
PhpDoc
Code that handles the template parameter
The text was updated successfully, but these errors were encountered: