PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_Template_Flexy » Bug #1753

SmartyConvertor compiler doesn't work

Details

Submitted2004-06-30 16:18 UTC
Fromsou_sk at nifty dot com
Assignedalan_k
StatusClosed
PackageHTML_Template_Flexy
PHP Version4.3.4
OSWindowsXP
Roadmaps(Not assigned)

Comments

[2004-06-30 16:18 UTC] sou_sk at nifty dot com

Description:
------------
Script returns following error when SmartyConvertor is set as its compiler.

> Use of undefined constant HTML_Template_Flexy_Compiler_Standard - assumed 'HTML_Template_Flexy_Compiler_Standard'

There seems to be typo in line 95 of SmartyConvertor.php

Reproduce code:
---------------
require_once('HTML/Template/Flexy.php');
$renderer = new HTML_Template_Flexy(array('compiler'=>'SmartyConvertor','templateDir'=>'your template dir'));
$renderer->compile('template.tpl.html');

Actual result:
--------------
[SmartyConvertor.php:95] Use of undefined constant HTML_Template_Flexy_Compiler_Standard - assumed 'HTML_Template_Flexy_Compiler_Standard'