Re: [SMARTY] Running multiple versions of Smarty in same script

From: Date: Tue, 26 Aug 2003 00:29:17 +0000
Subject: Re: [SMARTY] Running multiple versions of Smarty in same script
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10118@lists.php.net to get a copy of this message
John W. Holmes wrote:
Hi. What changes would I have to make to the Smarty classes/files in order to run two different versions in the same script? I'd like to do some benchmarking of different versions. I tried changing the class name of 2.6RC1 to Smarty2 and changing SMARTY_DIR to SMARTY2_DIR in all of the files. I had to change one function name at the end of the compiler class (i think), also. With all that, it seems to work fine on my WinXP machine at home, but when I upload to my host (FreeBSD 5.1RELEASE), I get the following error and warning: --------- Warning: Compilation failed: nothing to repeat at offset 16 in /www/realxl.net/sepodati/tpl_bench/smarty2/Smarty_Compiler.class.php on line 409 Fatal error: Smarty: [in bench1.txt line 2]: syntax error: unrecognized tag: $var0 (Smarty_Compiler.class.php, line 410) in /www/realxl.net/sepodati/tpl_bench/smarty2/Smarty_Compiler.class.php on line 2040 --------- Any suggestions? "bench1.txt" is just a plain text template file with {$var0} through {$var20} within some text.
Disregard this. I failed to change the names of the constructor methods when I changed the names of the classes, so that was causing the issue. It is working now. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.smarty.general (#10118) next »