Author |
Message |
Topic: I want more info in case of smarty error |
mstdmstd
Replies: 5
Views: 10428
|
Forum: General Posted: Wed Aug 13, 2014 2:14 pm Subject: I want more info in case of smarty error |
Anything you can get used to. They all have similar capabilities.
I use xdebug, it helps in many cases, but not with smarty errors.
If there are some tools with show more info with smarty, please, w ... |
Topic: I want more info in case of smarty error |
mstdmstd
Replies: 5
Views: 10428
|
Forum: General Posted: Tue Aug 12, 2014 3:28 am Subject: I want more info in case of smarty error |
Start using PHP debuggers already... There's several out in the webs.Please, mention which ones are good for this ? |
Topic: I want more info in case of smarty error |
mstdmstd
Replies: 5
Views: 10428
|
Forum: General Posted: Mon Aug 11, 2014 3:00 pm Subject: I want more info in case of smarty error |
Hallo,
If in my smarty template there is error like undefined var, I get error like :
A PHP Error was encountered
Severity: Notice
Message: Undefined index: PriUUcing
Filename& ... |
Topic: set smarty in "developers" mode |
mstdmstd
Replies: 4
Views: 5372
|
Forum: General Posted: Thu Jul 31, 2014 3:57 am Subject: set smarty in "developers" mode |
I do not have any cache like APC or other... |
Topic: set smarty in "developers" mode |
mstdmstd
Replies: 4
Views: 5372
|
Forum: General Posted: Wed Jul 30, 2014 5:22 am Subject: set smarty in "developers" mode |
Thanks, but seems that does not work in my Smarty-3.1.13.
In this case I have to reload page twice(without clearing cache/templates_c directory ) to see my changes in template.
But seems options ... |
Topic: set smarty in "developers" mode |
mstdmstd
Replies: 4
Views: 5372
|
Forum: General Posted: Tue Jul 29, 2014 12:01 pm Subject: set smarty in "developers" mode |
Hi,
How can I set my php project with smarty in "developers" mode so all changes in cache/templates_c directory will be applied at once ? I mean now I have manually to clear cache/template ... |
Topic: How to set array calling function plugin |
mstdmstd
Replies: 4
Views: 5055
|
Forum: General Posted: Mon Sep 23, 2013 4:26 am Subject: How to set array calling function plugin |
Thanks! |
Topic: How to set array calling function plugin |
mstdmstd
Replies: 4
Views: 5055
|
Forum: General Posted: Sun Sep 22, 2013 9:46 am Subject: How to set array calling function plugin |
Sorry, seems my question was not clear. I mean that the problem is in smarty template, I want to know valid syntax for array passed to plugin. |
Topic: How to set array calling function plugin |
mstdmstd
Replies: 4
Views: 5055
|
Forum: General Posted: Sun Sep 22, 2013 6:52 am Subject: How to set array calling function plugin |
Hi,
If I can to set array calling function plugin like :
{assign var=var_name value=array( 'bar'=>'baz', 'bar2'=>'blah' ) }
...
{url_parameter foo = $var_name ... |
Topic: strip_tags does not work |
mstdmstd
Replies: 3
Views: 4790
|
Forum: General Posted: Sun May 12, 2013 9:54 am Subject: strip_tags does not work |
It's a bug change modifiercompiler.strip_tags.php to
function smarty_modifiercompiler_strip_tags($params, $compiler)
{
if (!isset($params[1]) || $params[1 ... |
Topic: strip_tags does not work |
mstdmstd
Replies: 3
Views: 4790
|
Forum: General Posted: Sat May 11, 2013 12:50 pm Subject: strip_tags does not work |
Hi,
I found that strip_tags dose not work :
{$Sent_Emails_History.message|strip_tags:true}
output text with tags. What is wrong ? |
Topic: Escaping problem |
mstdmstd
Replies: 3
Views: 4925
|
Forum: General Posted: Sat May 11, 2013 10:46 am Subject: Escaping problem |
The escape modifer should be used only on output and not when passing parameter to javascript. It does escape "'" correctly to "'"
But you need "'" to become "\' ... |
Topic: Escaping problem |
mstdmstd
Replies: 3
Views: 4925
|
Forum: General Posted: Fri May 10, 2013 10:08 am Subject: Escaping problem |
Hi,
Escaping does not work as written <a href="javascript:DeleteHighlight( '{$HighlightsList[row].id}{$PageParametersWithSort}', '{$HighlightsList[ ... |
Topic: I need condition from several statements |
mstdmstd
Replies: 1
Views: 3024
|
Forum: General Posted: Fri Mar 29, 2013 5:43 am Subject: I need condition from several statements |
Hi all,
Is it correct smarty syntax :
{if $is_logged eq 1 and ( $user_role eq "Admin" or $user_role eq "Contributor" ) }
if I need condition from several state ... |
Topic: How to make exit from template |
mstdmstd
Replies: 10
Views: 17583
|
Forum: General Posted: Sun Jan 13, 2013 5:45 am Subject: How to make exit from template |
$this->registerPlugin("compiler","return", "smarty_compiler_return");
I think you did not change "function" to "compiler"
Thanks, It h ... |
|