|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Karel S. Smarty Rookie
Joined: 03 Aug 2009 Posts: 26 Location: The Netherlands
|
Posted: Fri Sep 25, 2009 10:18 am Post subject: Problem with includes |
|
|
I have a product page with some tabs (8 tabs). I use includes for the overview.
Code: |
<div id="product_specs">{include file="products/product_page_specs.html"}</div>
<div id="product_benchmarks">{include file="products/product_page_benchmarks.html"}</div>
<div id="product_reviews">{include file="products/product_page_reviews.html"}</div>
etc.
|
I'm currently working on the product_reviews page. But every time I make a change, I looks like the template won't recompile. Example, changed <h1>Reviews</h1> to <h4>, but I still see the <h1> tag.
The strange thing is, I don't have this problem with the first two includes. Only with the third one.
The include file recompile only with force_compile enabled, but that's make the whole site slow.
And yes, I deleted all files in templatec after the last csv updates. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Fri Sep 25, 2009 1:37 pm Post subject: |
|
|
Are you working with the latest SVN revision 3320 ?
In the first or seconde line of the compiled template or cache file you will find "file_dependency" information. Do you see all include files listed? |
|
Back to top |
|
Karel S. Smarty Rookie
Joined: 03 Aug 2009 Posts: 26 Location: The Netherlands
|
Posted: Fri Sep 25, 2009 1:56 pm Post subject: |
|
|
I do every morning a svn update. Current build is 3221. Can't find build 3320?
The file_dependency information in the main html file (with contains the includes):
Code: |
<?php $_smarty_tpl->decodeProperties('a:1:{s:15:"file_dependency";a:5:{s:11:"F3216436782";a:2:{i:0;s:78:"/var/.../templates/products/product_page_general.html";i:1;i:1253871969;}s:11:"F1736400899";a:2:{i:0;s:67:"/var/.../templates/general/breadcrumb.html";i:1;i:1252325141;}s:11:"F2347086855";a:2:{i:0;s:76:"/var/.../templates/products/product_page_specs.html";i:1;i:1253550051;}s:10:"F755464982";a:2:{i:0;s:81:"/var.../templates/products/product_page_benchmarks.html";i:1;i:1253616355;}s:11:"F2041603906";a:2:{i:0;s:78:"/var/.../templates/products/product_page_reviews.html";i:1;i:1253885471;}}}'); ?>
|
Indeed, product_page_reviews.html is here. But the problem is that product_page_reviews.html won't recompile when I change some html code in here. Even when I delete all html code in product_page_reviews.html, I still see the original page. So it won't recompile. |
|
Back to top |
|
|
|
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
|