You can assign values to your view before the partial

$this->layout()->test = 'foo';

and retrieve them using layout():

echo $this->layout()->test; // echoes 'foo'

Hope this helps,
Victor

Joe Czhlobatnik wrote:


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

I'm not passing anything to the partial, the partialLoop helper is. Note I'm sending a list of items, not just one single item. If I want to adjust what the helper sends to the partial, I'd have to unroll the list, add the extra values to each individual item, re-roll the list, and then send it to the helper. If I have to go to that rather silly extreme, then there's really no point using the helper.

Unless there's a built in mechanism that I'm missing, I'm thinking of extending partialLoop to take an extra parameter -- an array of extra values to "tack on" to the parameters that are passed to the partial for each iteration of the loop.

------------------------------------------------------------------------
Get free photo software from Windows Live Click here. <http://www.windowslive.com/online/photos?ocid=PID23393::T:WLMTAGL:ON:WL:en-US:SI_PH_software:082009>


--
Victor Farazdagi

UMapper / CrabDish LLC
7350 E. Progress Place, Suite 212
Greenwood Village, CO 80111
USA

http://www.umapper.com
http://www.afcomponents.com

Reply via email to