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 7 matches
Smarty Forum Index
Author Message
  Topic: Variable callback
mwvdlee

Replies: 7
Views: 23950

PostForum: Smarty Development   Posted: Thu Jun 02, 2016 5:44 am   Subject: Variable callback
Do note that xdebug itself is a big performance hog.
Instead of arguing to try and prove your case at any cost (while lokking more and more unconvincing at each iteration), try different approaches t ...
  Topic: Variable callback
mwvdlee

Replies: 7
Views: 23950

PostForum: Smarty Development   Posted: Wed Jun 01, 2016 7:17 pm   Subject: Variable callback
No, I understand perfectly.
But you did not provide any numbers to back your claim of "expensive".
That's because "expensive" is relative. In my current situation a typical " ...
  Topic: Variable callback
mwvdlee

Replies: 7
Views: 23950

PostForum: Smarty Development   Posted: Wed Jun 01, 2016 6:14 pm   Subject: Variable callback
It is not a very good idea to allow template access random data in your code.
It greatly diminishing the application security.
I suggest you reconsider your approach. Caching may help better, than s ...
  Topic: Variable callback
mwvdlee

Replies: 7
Views: 23950

PostForum: Smarty Development   Posted: Wed Jun 01, 2016 5:10 pm   Subject: Variable callback
I'm using Smarty with multiple template files to generate user-defined pages. These template files may use any of a large number of variables (several hundred to over a thousand, depending on the comp ...
  Topic: Best way to clone smarty instance
mwvdlee

Replies: 1
Views: 4268

PostForum: General   Posted: Fri May 20, 2016 10:16 pm   Subject: Best way to clone smarty instance
I'm currently using `clone` to make copies of a Smarty instance to render multiple templates roughly as such:


function getSmarty() {
static $smarty = null;

if (!$smarty) ...
  Topic: Multiple passes
mwvdlee

Replies: 2
Views: 4844

PostForum: General   Posted: Mon Nov 14, 2011 12:08 pm   Subject: Multiple passes
Thanks for the inheritance suggestion, I would have never thought of inheritance this way.

But instead I discovered prefilters in combination with the template_id, which seem to do the job and is i ...
  Topic: Multiple passes
mwvdlee

Replies: 2
Views: 4844

PostForum: General   Posted: Sat Nov 05, 2011 11:41 am   Subject: Multiple passes
I'd like to combine Smarty templates and separate translation files. But I'd like the translation files to include Smarty syntax itself as well.

For example a fragment of a template:
<div id=&q ...
 
Page 1 of 1
All times are GMT
Jump to:  


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