tirpitz Posted October 10, 2010 Share Posted October 10, 2010 hi i want to include .tpl file into another .tpl file, i am using following code {include file="filename.tpl"} but it doens't work, how do i get this working, i do not want to include the content in each page when it can be included with smarty include code. 0 Quote Link to comment Share on other sites More sharing options...
tsiedsma Posted October 14, 2010 Share Posted October 14, 2010 Read this: http://www.smarty.net/manual/en/language.function.include.php {include file='filename.tpl'} You are using the proper syntax, what are you trying to accomplish? 0 Quote Link to comment Share on other sites More sharing options...
xchosting Posted November 29, 2010 Share Posted November 29, 2010 Hi, You need to include your template's name before the filename: Change this: {include file="filename.tpl"} To this: {include file="mytemplatename/filename.tpl"} 0 Quote Link to comment Share on other sites More sharing options...
Ocliw Posted January 22, 2011 Share Posted January 22, 2011 Hi, You need to include your template's name before the filename: Change this: To this: This don't work. I am busy wirh the same, includinbg a tpl in a tpl Haven't find the answer yet, hope someone here knows it 0 Quote Link to comment Share on other sites More sharing options...
tsiedsma Posted January 22, 2011 Share Posted January 22, 2011 This don't work.I am busy wirh the same, includinbg a tpl in a tpl Haven't find the answer yet, hope someone here knows it Read my post above! This is not a difficult task. 0 Quote Link to comment Share on other sites More sharing options...
Ocliw Posted January 22, 2011 Share Posted January 22, 2011 Read my post above! This is not a difficult task. I did that but it's not working for me tpl is not included in the tpl 0 Quote Link to comment Share on other sites More sharing options...
Ocliw Posted January 22, 2011 Share Posted January 22, 2011 Okay, I'm stupid It's working now 0 Quote Link to comment Share on other sites More sharing options...
tsiedsma Posted January 22, 2011 Share Posted January 22, 2011 Care to share what you learned for others that may find this thread later? 0 Quote Link to comment Share on other sites More sharing options...
Alistair Posted May 25, 2011 Share Posted May 25, 2011 Care to share what you learned for others that may find this thread later? The answer is in the thread already. 0 Quote Link to comment Share on other sites More sharing options...
Lediona Posted April 27, 2020 Share Posted April 27, 2020 Maybe somebody will help me with that, cant understand whats the correct way to add a partial .tpl to another .tpl. Thank you 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.