Ticket #40 (closed defect: fixed)
SmartyEngine Errors
| Reported by: | smerrill | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.5 |
| Component: | Habari Core Software | Version: | SVN |
| Keywords: | Smarty, has_patch | Cc: |
Description
Moved from GCode Issue #314
eported by smerrill, Apr 19, 2007
While trying to test SmartyEngine templates, I got the following error:
Fatal error: Class SmartyEngine contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (TemplateEngine::template_exists, TemplateEngine::assigned) in /home/www/skippy.net/system/classes/smartyengine.php on line 18
Comment 1 by pjkeane, Apr 19, 2007
Here's a patch for smartyengine.php that will fix this error. I am currently working
on a barebones Smarty Theme example which will depend on this patch.
public function template_exists( $tmpl_file )
{
return file_exists( $this->template_dir . $tmpl_file . '.tpl');
}
public function assigned( $name )
{
if ($this->smarty->get_template_vars( $name )) {
return true;
} else {
return false;
}
}
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

