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

Search found 10 matches
Smarty Forum Index
Author Message
  Topic: Override compile_check options
kataxxx

Replies: 6
Views: 7532

PostForum: Smarty Development   Posted: Wed Oct 31, 2012 2:59 pm   Subject: Override compile_check options
[quote]Maybe i am using smarty for what it is not designed for [/quote]
I couldn't really understand what you are trying to acchive, but try other solution. One that works with Smarty. You are progr ...
  Topic: Override compile_check options
kataxxx

Replies: 6
Views: 7532

PostForum: Smarty Development   Posted: Thu Oct 11, 2012 5:56 pm   Subject: Re: Override compile_check options
From what I know using smarty,
You edit/create the templates, compile all the templates (Smarty->compile_all something), and then disable compile_check.
Maybe you wanna try that one.
Good luck!
  Topic: Cache resource and Compile cache at the same time.
kataxxx

Replies: 1
Views: 4912

PostForum: Smarty Development   Posted: Thu Oct 11, 2012 2:30 pm   Subject: Re: Cache resource and Compile cache at the same time.
May someone help me? I don't wanna use HDD/SSD for templates.
At least let me know if that's possible.

Thank you :)
  Topic: Cache resource and Compile cache at the same time.
kataxxx

Replies: 1
Views: 4912

PostForum: Smarty Development   Posted: Wed Oct 03, 2012 7:37 am   Subject: Cache resource and Compile cache at the same time.
I've implemented those 2 resource with mongo. (Custom resources) and it works. One at a time!

If I have :
--$Smarty->display('template.html', $templade_id);
The resource cache works.

If I h ...
  Topic: Easiest way for multilanguage
kataxxx

Replies: 1
Views: 10233

PostForum: Tips and Tricks   Posted: Wed Apr 25, 2012 3:53 pm   Subject: Easiest way for multilanguage
Thanks ;)
  Topic: Prefilter cache
kataxxx

Replies: 3
Views: 3190

PostForum: General   Posted: Wed Apr 25, 2012 3:23 pm   Subject: Prefilter cache
function smarty_prefilter_pre($output, &$smarty) {
$output = str_replace( $tpl_output);
"$output" !== "$tpl_output"

You should also note that you ar ...
  Topic: Prefilter cache
kataxxx

Replies: 3
Views: 3190

PostForum: General   Posted: Sat Apr 21, 2012 3:26 pm   Subject: Prefilter cache
Hei.
I want to have more compact cache files. They contain many whitespaces => more memory.
I have this code that is not working right:

function smarty_prefilter_pre($output, &$smarty& ...
  Topic: How can I know if an array contain a data
kataxxx

Replies: 2
Views: 2898

PostForum: General   Posted: Sun Apr 08, 2012 8:18 pm   Subject: How can I know if an array contain a data
Try
{if isset($myarrayItem.toto) }
true
{else}
false
{/else}
This should work.
  Topic: Dinamic {if isset($var) } (do not put in cache)
kataxxx

Replies: 2
Views: 4564

PostForum: General   Posted: Sun Apr 08, 2012 6:01 pm   Subject: Thanks
Thank you.
That solved my problem and also I see that it not takes extra time for compiling.
Buy wouldn't be nicer if it would as I said?
My code is getting uglier.

EDIT:
Okey. I gave up on cac ...
  Topic: Dinamic {if isset($var) } (do not put in cache)
kataxxx

Replies: 2
Views: 4564

PostForum: General   Posted: Sun Apr 08, 2012 3:38 pm   Subject: Dinamic {if isset($var) } (do not put in cache)
Hei.
My first post, my first day in smarty.
I use jquery template, which is similar to smarty.
If I have a JSON : {"email":"a@b.com"}, I can do something like:
&# ...
 
Page 1 of 1
All times are GMT
Jump to:  


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