Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

templates with the same names from different resources

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
ilyalyu
Smarty Regular


Joined: 03 Nov 2009
Posts: 72

PostPosted: Thu Aug 09, 2012 12:08 pm    Post subject: templates with the same names from different resources Reply with quote

Sample code:

Code:
{include 'resource1:template.tpl'}

Contents of resource1:template.tpl template:
{include 'resource2:template.tpl'}

Contents of resource2:template.tpl template:
some text


This sample generates error:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261904 bytes) in ..\smarty\sysplugins\smarty_internal_template.php on line 169

Evidently, Smarty does not recognize that these are two diferent templates from deferent resources.
Back to top
View user's profile Send private message
rodneyrehm
Administrator


Joined: 30 Mar 2007
Posts: 674
Location: Germany, border to Switzerland

PostPosted: Thu Aug 09, 2012 12:58 pm    Post subject: Reply with quote

Which version are you using? How (exactly) do your resource handlers look like?
_________________
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP