Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Problem with includes

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
Karel S.
Smarty Rookie


Joined: 03 Aug 2009
Posts: 26
Location: The Netherlands

PostPosted: Fri Sep 25, 2009 10:18 am    Post subject: Problem with includes Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Fri Sep 25, 2009 1:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Karel S.
Smarty Rookie


Joined: 03 Aug 2009
Posts: 26
Location: The Netherlands

PostPosted: Fri Sep 25, 2009 1:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 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