Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Dostanie się pod wskazany indeks tablicy :-)

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Polish
View previous topic :: View next topic  
Author Message
NeVeS
Smarty n00b


Joined: 13 May 2009
Posts: 1

PostPosted: Wed May 13, 2009 6:38 pm    Post subject: Dostanie się pod wskazany indeks tablicy :-) Reply with quote

mam obiekt $Foo->get() - zwracający liczbę
mam tablice $Array

$Array.$Foo->get() nie działa Sad
$Array.($Foo->get()) nie działa Sad

W jaki sposób dobrać się do elementu tablicy pod indeksem zwróconym prze funkcję wywołaną na obiekcie Very Happy?
Back to top
View user's profile Send private message
fornve
Smarty Rookie


Joined: 25 Apr 2008
Posts: 29
Location: Sheffield, UK

PostPosted: Fri May 15, 2009 4:06 pm    Post subject: Reply with quote

Powinno to dzialac
{$Array.Foo->get()}

lub sprobuj:

Code:

{assign var=object value=$Array.Foo}
{$object->get()}
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Polish All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP