- allow $tpl->display(), $tpl->fetch(); and $tpl->is_cached() calls on template objects

This commit is contained in:
Uwe.Tews
2009-09-29 21:00:00 +00:00
parent 56e01e8a45
commit 0fdcb79ec3

View File

@@ -665,6 +665,29 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase {
} }
} }
} }
/**
* wrapper for display
*/
public function display ()
{
return $this->smarty->display($this);
}
/**
* wrapper for fetch
*/
public function fetch ()
{
return $this->smarty->fetch($this);
}
/**
* wrapper for is_cached
*/
public function is_cached ()
{
return $this->iscached();
}
} }
/** /**