cotonti.com : New XTemplate usage error https://www.cotonti.com Laatste forum onderwerpen Cotonti en Thu, 05 Mar 2026 01:24:47 -0000 Trustmaster
$zparts = new XTemplate('plugins/parts/inc/parts.tpl');
]]>
Zo, 19 Jul 2009 23:26:01 -0000
Macik After I upgraded to 0.0.6 I get an error using Xtemplate:

Fatal error: 
Uncaught exception 'Exception' with message 'Template file not found: parts.tpl' in C:\Program Files\VertrigoServ\www\sites\bmag\system\xtemplate.php:154 
Stack trace: 
#0 C:\Program Files\VertrigoServ\www\sites\bmag\system\xtemplate.php(39): XTemplate->restart('parts.tpl') 
#1 C:\Program Files\VertrigoServ\www\sites\bmag\plugins\parts\inc\main.php(62): XTemplate->__construct('parts.tpl', 'plugins/parts/i...') 
#2 C:\Program Files\VertrigoServ\www\sites\bmag\plugins\parts\parts.tag.php(30): include('C:\Program File...') 
#3 C:\Program Files\VertrigoServ\www\sites\bmag\system\core\index\index.inc.php(44): include_once('C:\Program File...') 
#4 C:\Program Files\VertrigoServ\www\sites\bmag\index.php(20): require_once('C:\Program File...') 
#5 {main} thrown in C:\Program Files\VertrigoServ\www\sites\bmag\system\xtemplate.php on line 154

The line cause an error in my plugin is:
$zparts = new XTemplate('parts.tpl','plugins/parts/inc');

Whats wrong? And how to fix it?]]>
Zo, 19 Jul 2009 23:02:37 -0000