Progress of sorts on FastTemplates + forms classess packs. If you use classes, you should watch this.

From: Date: Thu, 10 Feb 2000 10:48:44 +0000
Subject: Progress of sorts on FastTemplates + forms classess packs. If you use classes, you should watch this.
Groups: php.version4 
Request: Send a blank email to php-version4+get-10015@lists.php.net to get a copy of this message
Sorry about the traffic folks. Just trying to get the shop back on line. Anyway, I'm using the following classes. class.FastTemplate.php3 forms.php With two files, vwr.php and vwr.tpl There is something different in the way the php4 calls work though. I'll try and track it myself tomorrow, but you might like to mull it over yourselves. I doubt I am the only one using these classes. At the top of vwr.php3 I have this bit of code to call the classes. include("class.FastTemplate.php3"); $tpl = new FastTemplate("."); <--- This line originally said $tpl = new FastTemplate("./forms.php"); $tpl->define(array(vwr => "vwr.tpl")); With this changed code, I get this result, it is for some reason not able to call the forms.php class. http://www.chalmers.com.au/OrderPages/vwr.php3?packid=AFTC01 Two forms, one 'raw' the other complete, stacked one above the other. With the original syntax I get this error, ...................... ./forms.php/vwr.tpl Warning: Bad arguments to implode() in class.FastTemplate.php3 on line 156 ERROR: get_template() failure: [./forms.php/vwr.tpl] ...................... So, I'll leave this in place till late tomorrow, (Friday here.) and then have another go at it. Failing that, back to php3 cheers Bob http://www.chalmers.com.au Clipart And Books Art, Design and Graphics.

« previous php.version4 (#10015) next »