NYCPHP Meetup

NYPHP.org

[nycphp-talk] Smart variable syntax question

Cliff Hirsch cliff at pinestream.com
Wed Nov 8 18:01:42 EST 2006


I want this in a Smarty template:
 
PHP equivalent: $params[0]->Contracts[$params[1]]['textkey']
 
Smarty template: {$params[0]->Contracts.$params[1].textkey}
 
This doesn't work. I can't figure out how to make the nested ->Contract
[ $var[n]  } work in Smarty.
 
Any ideas? David Mintz.hint, hint..
 
Cliff Hirsch
_______________________________
Pinestream Communications, Inc.
Publisher of Semiconductor Times & Telecom Trends
52 Pine Street, Weston, MA 02493 USA
Tel: 781.647.8800, Fax: 781.647.8825
http://www.pinestream.com <http://www.pinestream.com/> 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20061108/e2d44abd/attachment.html>


More information about the talk mailing list