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 3 matches
Smarty Forum Index
Author Message
  Topic: Template variable in configuration string.
mataniko

Replies: 3
Views: 3723

PostForum: General   Posted: Wed May 01, 2019 1:07 pm   Subject: Template variable in configuration string.
Thanks. I was hoping there was a more straightforward way to do this, one which wouldn't require the template writer to know which string variable has a string variable in it.

Would this be somethi ...
  Topic: Template variable in configuration string.
mataniko

Replies: 3
Views: 3723

PostForum: General   Posted: Wed May 01, 2019 3:20 am   Subject: Template variable in configuration string.
Is there a way to expand a variable referenced in a configuration string? For example:


// sample.php
$smarty->assign(array( 'release' => '2.0.0' )

// sample.ini
info=Versio ...
  Topic: Using {extend} in a loop
mataniko

Replies: 2
Views: 2914

PostForum: General   Posted: Tue Jul 31, 2018 2:03 pm   Subject: Using {extend} in a loop
Whats the best way to combine a loop and {extend}?

I have a template that is simply a container with a header and a body that I want to reuse multiple times within a page.

Is {extend} just not t ...
 
Page 1 of 1
All times are GMT
Jump to:  


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