Share » Forums » Developer » eZTemplate::fetch($template=false, ...)

eZTemplate::fetch($template=false, ...)

eZTemplate::fetch($template=false, ...)

Thursday 28 August 2003 5:23:53 pm - 2 replies

Author Message

Jan Borsodi

Thursday 28 August 2003 10:25:31 pm

How was the $tpl object initialized, did you just new the eZTemplate class or did you use the template initialization in kernel/common/template.php?

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Willie Seabrook

Thursday 28 August 2003 10:54:40 pm

include_once( "kernel/common/template.php" );

$tpl =& templateInit();
$tpl->setVariable( 'myvar', "Some dumb variable!!!" );
$templateResult =& $tpl->fetch( 'design:newsite/override/templates/new.tpl');

I'm sure thats correct.... i copied it out of another bit of ezpublish. This code is being executed inside a event in a workflow and is not for output. The templateResult is to be written to a file (once i get it working that is) :-)

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu