| Macik |
|
|---|---|
|
I had a plugin that works fine in 0.0.5.
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? https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F |
| Trustmaster |
|
|---|---|
|
Custom folders as additional parameters are not supported any more. You need to specify full template file path:
$zparts = new XTemplate('plugins/parts/inc/parts.tpl');May the Source be with you!
|