NYCPHP Meetup

NYPHP.org

[nycphp-talk] Smart variable syntax question

Donald J Organ IV dorgan at optonline.net
Wed Nov 8 18:08:44 EST 2006


there has to be some type of evaluate function in smarty because you 
want to evaluate $params[1] so i would start by looking for an evaluate 
function.

Cliff Hirsch wrote:
>
> 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/>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>   
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.430 / Virus Database: 268.14.0/524 - Release Date: 11/8/2006 1:40 PM
>   




More information about the talk mailing list