2013-01-12

Hello!

I'm trying to {include} an external .tpl into my template.
CMSMS 1.11

When I edit my template, and write anything - I can Update/Save the changes and everything is ok with information ~''template succesfully updated".

But when I put {include file='test.tpl'} template and clicked Update button - there wasn'y any information about 'template succesfully updated', and when when I clicked OK, this error went out:

Code:

Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'test.tpl' in 'template:appdata;tmp_template'' in /home/norwid/domains/ayz.pl/public_html/lib/smarty/sysplugins/smarty_internal_templatebase.php:127 Stack trace: #0 /home/norwid/domains/ayz.pl/public_html/lib/smarty/sysplugins/smarty_internal_template.php(286): Smarty_Internal_TemplateBase->fetch(NULL, NULL, NULL, NULL, false, false, true) #1 /home/norwid/domains/ayz.pl/public_html/tmp/templates_c/dd10a1840f43813cd647195dd79bd3add047c6e9.template.appdata;tmp_template.php(59): Smarty_Internal_Template->getSubTemplate('test.tpl', NULL, NULL, NULL, NULL, Array, 0) #2 /home/norwid/domains/ayz.pl/public_html/lib/smarty/sysplugins/smarty_internal_templatebase.php(180): content_50f18b39bb2299_70319025(Object(Smarty_Internal_Template)) #3 /home/norwid/domains/ayz.pl/public_html/lib/classes/class.Smarty_CMS.php(329): Smarty_Internal_TemplateBase->fetch('template:appdat...', NULL, NULL, NULL, false, false, in /home/norwid/domains/ayz.pl/public_html/lib/smarty/sysplugins/smarty_internal_templatebase.php on line 127

{include file='test.tpl'} works fine in content of pages, but doesn't work in templates.

Any ideas why?
Thanks.

@down - I said that {include} works for me in content pages, so it logic that I know where to put the external files.

The problem is only with templates code - only in that place {include} command has problems.

Show more