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

a registered object cannot be looped over or assigned

 
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 -> General
View previous topic :: View next topic  
Author Message
eadz
Smarty Regular


Joined: 30 Apr 2003
Posts: 61
Location: Auckland, New Zealand

PostPosted: Thu May 01, 2003 12:14 am    Post subject: a registered object cannot be looped over or assigned Reply with quote

http://smarty.php.net/manual/en/advanced.features.php#ADVANCED.FEATURES.OBJECTS

The Manual wrote:
However, a registered object cannot be looped over or assigned in arrays of objects, etc.


Could some please give an example on what you can't do with a registered object that you can do with an assigned object? The manual wasn't very clear. ( Or I just didn't understand it )

I think a registered object is what I want, but it says you can't loop through objects.

Does that mean I can't use myObject->get_entries in a section? looping over the array passed back from get_entries?
Back to top
View user's profile Send private message Visit poster's website
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Thu May 01, 2003 1:30 am    Post subject: Reply with quote

sorry this isn't an answer, but... why not just try it out??
Back to top
View user's profile Send private message
eadz
Smarty Regular


Joined: 30 Apr 2003
Posts: 61
Location: Auckland, New Zealand

PostPosted: Thu May 01, 2003 5:13 am    Post subject: Reply with quote

I'm looking for the differences between a registered object and an assigned object. The manual isn't very clear.
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 -> General 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