partial/partialLoop eat the object with standard behaviour :/
This is something I talked to Matthew about, and he asked me a while
ago to post to the list asking opinions.
Here's the question: when you pass an actual physical object instead
of an array, how do you know what to name this variable in the view...
Regards,
Eric
On Jan 10, 2008, at 12:27 PM, Whitcraft, Jon wrote:
> I have a model that implements SeekableIterator and Countable so I
> can use it like an array
>
>
> When I do a foreach($designs as $design) {} loop I get back the
> proper value in $design which is an object model containing all the
> info about a design..but when I do this
>
> <?= $this->partialLoop('view/design.phtml', $this->designs); ?>
>
> I don’t have any way to access it. am I doing something wrong or
> can objects not be used?
>
> <image001.gif>
> Jon Whitcraft
> Indianapolis Motor Speedway
>
jwhitcraft@...
> Phone: (317) 492-8623 :: Fax: (317) 492-6419
>
>
> ********************
> ********************
> This E-mail (and attachments) may contain confidential/privileged
> information intended only for the named addressee(s). If you are not
> an intended recipient, do not read, copy, disseminate or take any
> action based on the content of this E-mail. Please notify the sender
> by reply E-mail and erase this E-mail from your system. Your
> assistance is appreciated. E-mail transmission may not be secure or
> error-free. The company is not responsible for any loss/damage
> arising from any virus transmitted.
> ********************
> ********************