Well you could just put all values in an array an pass that to the partial?

On 12 Aug 2009, at 20:42, Joe Czhlobatnik <[email protected]> wrote:

I don't see any mechanism to pass extra parameters (i.e., in addition to what's provided by the iterable) to a partialLoop. For example, I might have an action that does this:

$this->view->user = $user->name;
$this->view->site = $user->site;
$this->view->items = $user->getItems();

Then, in my view script:

Welcome, <?= $this->user ?>
Here are your items:
<?= $this->partialLoop('_item.phtml', $this->items) ?>

This works great so far, but now I want to access $this->view->site from inside the partial. How do I do that?

Thanks,
Yog

Get back to school stuff for them and cashback for you. Try Bing now.

Reply via email to