|
[SMARTY] How to pass a variable inside a section loop: msg#00390php.smarty.general
Hi all: I'd like to pass a variable to a function inside of a section loop, but I'm just starting out with smarty, and don't know how to do it. The {ahref} function is one that I downloaded from the extensions directory. I have an array of bookmark objects that I'm passing to my template. I'd like to customize the links that get printed out, but I can't figure out how to get the following to work: {section name=bookmarks loop=$ArrayOfBookmarks} {ahref string="{$ArrayOfBookmarks[bookmarks]->Name}" url="http://www.oeone.com"} {/section} The above will give an error, since it finds the } at the end of the variable. Any help is appreciated. Thanks, Mike -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: [SMARTY] file name: 00390, Hoffman, Geoffrey |
|---|---|
| Next by Date: | [SMARTY] Re: How to pass a variable inside a section loop: 00390, Mike Potter |
| Previous by Thread: | RE: [SMARTY] ??Cannot Instantiate None Existent Class???i: 00390, Hoffman, Geoffrey |
| Next by Thread: | [SMARTY] Re: How to pass a variable inside a section loop: 00390, Mike Potter |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |