1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
-
-
- class Smarty_Internal_Method_SetDebugTemplate
- {
-
-
- public $objMap = 3;
-
-
-
- public function setDebugTemplate(Smarty_Internal_TemplateBase $obj, $tpl_name)
- {
- $smarty = isset($obj->smarty) ? $obj->smarty : $obj;
- if (!is_readable($tpl_name)) {
- throw new SmartyException("Unknown file '{$tpl_name}'");
- }
- $smarty->debug_tpl = $tpl_name;
- return $obj;
- }
- }
|