|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
NeVeS Smarty n00b
Joined: 13 May 2009 Posts: 1
|
Posted: Wed May 13, 2009 6:38 pm Post subject: Dostanie się pod wskazany indeks tablicy :-) |
|
|
mam obiekt $Foo->get() - zwracający liczbę
mam tablice $Array
$Array.$Foo->get() nie działa
$Array.($Foo->get()) nie działa
W jaki sposób dobrać się do elementu tablicy pod indeksem zwróconym prze funkcję wywołaną na obiekcie ? |
|
Back to top |
|
fornve Smarty Rookie
Joined: 25 Apr 2008 Posts: 29 Location: Sheffield, UK
|
Posted: Fri May 15, 2009 4:06 pm Post subject: |
|
|
Powinno to dzialac
{$Array.Foo->get()}
lub sprobuj:
Code: |
{assign var=object value=$Array.Foo}
{$object->get()}
|
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|