Author |
Message |
Topic: smarty php : how to pass variable in registerPlugin function |
smartybug
Replies: 1
Views: 16199
|
Forum: Plugins Posted: Thu Apr 07, 2016 9:01 am Subject: smarty php : how to pass variable in registerPlugin function |
i want to know how can i pass variable to function which am registering as plugin with registerPlugin() function of smarty php
how am doing.
i have smarty_get_data function
function smarty_ge ... |
Topic: 502 Bad Gateway on huge {assign} |
smartybug
Replies: 3
Views: 10318
|
Forum: Bugs Posted: Fri Jun 12, 2015 7:36 am Subject: 502 Bad Gateway on huge {assign} |
Works perfect
Thanks a lot. |
Topic: 502 Bad Gateway on huge {assign} |
smartybug
Replies: 3
Views: 10318
|
Forum: Bugs Posted: Thu Jun 11, 2015 2:16 pm Subject: 502 Bad Gateway on huge {assign} |
Hi guys,
i am trying to update Smarty to version 3.1.24.
On really huge assigns i get an 502 Bad Gateway. Like this one:
{assign "SFGalleryBackground" "background: url ... |
Topic: regex_replace + carat(^) |
smartybug
Replies: 3
Views: 7495
|
Forum: General Posted: Tue Apr 09, 2013 3:27 pm Subject: regex_replace + carat(^) |
In the end I solved it, I'll still describe the problem in case it helps someone:
-------------------------------
The regex function works, but upon further testing it certainly doesn't behave l ... |
Topic: regex_replace + carat(^) |
smartybug
Replies: 3
Views: 7495
|
Forum: General Posted: Tue Apr 09, 2013 8:43 am Subject: regex_replace + carat(^) |
No matter how many times I try, it seems that I can't use the carat symbol on a regex_replace function inside a smarty template file.
These are examples of what I'm trying to do:
{$string|regex_ ... |
Topic: The best way to get data from mysql, using only Smarty. |
smartybug
Replies: 1
Views: 4243
|
Forum: General Posted: Fri Jan 06, 2012 10:06 pm Subject: The best way to get data from mysql, using only Smarty. |
I'm doing a website, which contain tree categories. And now I'm looking for the best way to get list of categories from MySQL and create a menu.
I would like to avoid using $smarty->assign() (co ... |
Topic: I cannot change $template_dir in Smarty.class.php |
smartybug
Replies: 1
Views: 5790
|
Forum: General Posted: Mon Apr 25, 2011 11:23 am Subject: I cannot change $template_dir in Smarty.class.php |
Hey.
I am trying to change default template_dir and compile_dir.
When I was using Smarty 2, I had to only change this block:
/**
* The name of the directory where templates are loca ... |
Topic: How to instantiate objects within Smarty template? |
smartybug
Replies: 16
Views: 26057
|
Forum: General Posted: Thu Nov 04, 2010 4:55 pm Subject: How to instantiate objects within Smarty template? |
I'd try a custom block function that generates/releases the objects in php.
Hi Monte,
thanks for your suggestion, I'll go with that solution.
Out of interest,
{$var = 5}
works fine (with ... |
Topic: How to instantiate objects within Smarty template? |
smartybug
Replies: 16
Views: 26057
|
Forum: General Posted: Fri Oct 29, 2010 8:38 pm Subject: How to instantiate objects within Smarty template? |
Hi,
I have a huge array of objects, so huge, it doesn't fit into the memory of the webserver anymore.
Up to now my code looked like this:
{foreach from=$hugeObjectArray item=object} ... |
Topic: replace foreach with something |
smartybug
Replies: 4
Views: 11439
|
Forum: Feature Requests Posted: Sun Oct 10, 2010 7:46 am Subject: replace foreach with something |
But if I use:
{$DB_WEB.title}
It does not do anything. Result of this code is empty space. |
Topic: replace foreach with something |
smartybug
Replies: 4
Views: 11439
|
Forum: Feature Requests Posted: Sat Oct 09, 2010 8:38 pm Subject: replace foreach with something |
Nobody knows? |
Topic: replace foreach with something |
smartybug
Replies: 4
Views: 11439
|
Forum: Feature Requests Posted: Sat Oct 09, 2010 12:31 pm Subject: replace foreach with something |
I take data with:
$web = $db->get_results("SELECT * FROM config");
In config is title, subname, theme......
$Smarty->assign('DB_WEB', $web);
I have in index.t ... |
Topic: Smarty 3 Beta 8 Released |
smartybug
Replies: 38
Views: 102857
|
Forum: Smarty 3 Posted: Mon Mar 08, 2010 10:45 am Subject: Smarty 3 Beta 8 Released |
// some API calls are moved into their own objects:
$smarty->cache->loadResource($type = null)
So you have to find and change 'loadCacheResource' call. |
Topic: default_modifiers in smarty 3 |
smartybug
Replies: 1
Views: 11341
|
Forum: Feature Requests Posted: Mon Jan 18, 2010 4:13 am Subject: default_modifiers in smarty 3 |
[url=http://e26ac62a.qvvo.com]The $smarty->default_modifiers feature was removed from smarty 3 (but the docs make no mention of this.)
Now my application has a HUGE number of xss flaws. ... |
|