<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : New XTemplate usage error</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sat, 11 Apr 2026 23:21:15 -0000</pubDate>

		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Custom folders as additional parameters are not supported any more. You need to specify full template file path:<br />
<div class="highlight"><pre class="php">$zparts = new XTemplate('plugins/parts/inc/parts.tpl');</pre></div>]]></description>
			<pubDate>Sun, 19 Jul 2009 23:26:01 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=3006&d=0#post14555]]></link>
		</item>
		<item>
			<title>Macik</title>
			<description><![CDATA[I had a plugin that works fine in 0.0.5.<br />
After I upgraded to 0.0.6 I get an error using Xtemplate:<br />
<br />
<pre class="code">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-&gt;restart('parts.tpl') 
#1 C:\Program Files\VertrigoServ\www\sites\bmag\plugins\parts\inc\main.php(62): XTemplate-&gt;__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
</pre>
<br />
The line cause an error in my plugin is:<br />
<div class="highlight"><pre class="php">$zparts = new XTemplate('parts.tpl','plugins/parts/inc');</pre></div>
<br />
Whats wrong? And how to fix it?]]></description>
			<pubDate>Sun, 19 Jul 2009 23:02:37 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=3006&d=0#post14551]]></link>
		</item>
	</channel>
</rss>