Forums / Developer / fetching a template in php

fetching a template in php

Author Message

ludo thomas

Wednesday 06 July 2005 6:45:17 am

hi ,
these days I'm trying to fetch a template into a custom workflow.
my code:

include_once( "kernel/common/template.php" );
			
	$tpl = & templateInit();
		
	 $TemplateResult =& $tpl->fetch( 'design:news/test.tpl' );

2 problems:

*I'm not sure that kernel/common/template is include (if I give a wrong path I dont have any error and templateInit()seems to be OK)

*news/test.tpl seems not te be executed (I can give a wrong path and that change nothing)

I have clear my cache ;-)
all my code is here:http://ez.no/community/forum/developer/how_to_send_an_object_into_email