[nycphp-talk] Smart variable syntax question
David Mintz
dmintz at davidmintz.org
Thu Nov 9 14:43:05 EST 2006
Jeez, I'm flattered but I'm no Smarty guru. Maybe the answer is "you
can't." At the risk of suggesting the obvious, any chance of breaking it
down into a less complex data structure at the PHP level, and assigning
that instead?
On Wed, 8 Nov 2006, Cliff Hirsch wrote:
> 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..
---
David Mintz
http://davidmintz.org/
En Nueva York el tránsito de la belleza a la desolación sucede
siempre expeditivamente, como si el principio universal
de máxima eficiencia hubiera aconsejado la supresión de
gradaciones intermedias.
-- Antonio Muñoz Molina, Ventanas de Manhattan
More information about the talk
mailing list