That is correct, each partial execution gets a clean slate (the view is cloned) so that models can have an assurance of a clean environment. Inside of the script being called by partial() try (instead of using cycle) using the $this->partialCounter variable.

If you are using a cycle() to basically do iteration of values, you can do something like this:

echo ($this->partialCounter % 2) ? 'white' : 'black';

Hope that helps,
Ralph

Joe Czhlobatnik wrote:
If I use the cycle helper inside a partial called by partialloop, it resets for each iteration and I get no cycling. Is there a simple workaround for this?
------------------------------------------------------------------------
HotmailĀ® is up to 70% faster. Now good news travels really fast. Try it now. <http://windowslive.com/online/hotmail?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_faster:082009>

Reply via email to