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

Search found 3 matches
Smarty Forum Index
Author Message
  Topic: Always executer certain php code before smaerty template loa
JohnSerbersky

Replies: 0
Views: 18600

PostForum: Tips and Tricks   Posted: Thu Dec 12, 2013 10:26 pm   Subject: Always executer certain php code before smaerty template loa
I have site of 50 pages and 50 templates. I decided that i want to run certain code after before each template loads

i.e. before
$smarty->display("pagetemplate.tpl");


I ...
  Topic: Smarty Templates takes 3.3 seconds to load.
JohnSerbersky

Replies: 2
Views: 4356

PostForum: General   Posted: Mon Oct 07, 2013 8:15 pm   Subject: Smarty Templates takes 3.3 seconds to load.
Do you have by mistake $smarty->force_compile = true so that your templates get recompiled on each call?

Actually i did, then when i disabled it page was opening in less than second.

I guess ...
  Topic: Smarty Templates takes 3.3 seconds to load.
JohnSerbersky

Replies: 2
Views: 4356

PostForum: General   Posted: Wed Oct 02, 2013 10:34 pm   Subject: Smarty Templates takes 3.3 seconds to load.
I have only one page on my site that takes that long to load, this is user details page with huge form.

And i have to have about 150 separate {if}{else}{/if} statements.

Are IF statements slo ...
 
Page 1 of 1
All times are GMT
Jump to:  


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