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

Search found 3 matches
Smarty Forum Index
Author Message
  Topic: Doesnt assign same array to diferent smarty vars
JoaoCorreia

Replies: 1
Views: 5106

PostForum: Bugs   Posted: Fri Jul 04, 2003 12:52 pm   Subject: Doesnt assign same array to diferent smarty vars
Try this:

//### PHP FILE ###

$test = array();
$test[] = "HELLO WORLD";

$smarty->assign('var1',$test);
$smarty->assign('var2',$test);
$smarty->assign('var3',$test);

//#### Templ ...
  Topic: Inserting a smarty variable into a smarty variable
JoaoCorreia

Replies: 3
Views: 3636

PostForum: General   Posted: Fri Jul 04, 2003 12:45 pm   Subject: Doesnt work !!
The following code doesnt work !

{area->lista p1='<a href=$url><img src=/`$area_path`/images/$img_on border=0></a>' p2='1' p3=''}

$area_path is not working, it stays blank a ...
  Topic: Inserting a smarty variable into a smarty variable
JoaoCorreia

Replies: 3
Views: 3636

PostForum: General   Posted: Thu Jul 03, 2003 10:45 pm   Subject: Inserting a smarty variable into a smarty variable
Howdy,

In PHP we can do:

$var1 = "Testing 123 ".$var2." etc etc";

How can we do this with smarty ?

I have an object but I would like to put in p1 a smarty variable. How can I do this ?
...
 
Page 1 of 1
All times are GMT
Jump to:  


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