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 5 matches
Smarty Forum Index
Author Message
  Topic: Global variable scope issue
Girish

Replies: 3
Views: 21075

PostForum: Smarty Development   Posted: Mon Jan 16, 2017 8:22 am   Subject: Global variable scope issue
You mean variable scope is only limited with template hierarchy?

We want to use those variable at multiple places so if we go with this approach we have to call respective function at many times.
...
  Topic: Global variable scope issue
Girish

Replies: 3
Views: 21075

PostForum: Smarty Development   Posted: Fri Jan 13, 2017 11:45 am   Subject: Global variable scope issue
{function name=testing data=''}
{assign var=var_a value=$data scope="global"}
{/function}

{testing data=1}
1. {$var_a}

{testi ...
  Topic: Include inline with string resource is not displaying output
Girish

Replies: 4
Views: 21472

PostForum: Smarty Development   Posted: Mon Jan 09, 2017 12:53 pm   Subject: Include inline with string resource is not displaying output
We tried with both the ways but no good luck.

Will you please do let us know how can we achieve this.
  Topic: Include inline with string resource is not displaying output
Girish

Replies: 4
Views: 21472

PostForum: Smarty Development   Posted: Fri Jan 06, 2017 5:12 am   Subject: Include inline with string resource is not displaying output
No any difference in result.

include inline with tpl file is working as expected but not with the string.


{include file="../../Common/generic_templates/sort_table_content.tpl" ...
  Topic: Include inline with string resource is not displaying output
Girish

Replies: 4
Views: 21472

PostForum: Smarty Development   Posted: Thu Jan 05, 2017 4:41 pm   Subject: Include inline with string resource is not displaying output
I am trying to use include inline to parse the smarty string but it's not working as expected.

{$b = 'testing'}
{$a = '{$b}'}
{include file="string:{$a}" inline=true}

I can parse the ...
 
Page 1 of 1
All times are GMT
Jump to:  


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