2008年11月4日星期二

Re: [fw-mvc] Nested Partials

On Tue, Nov 4, 2008 at 1:45 PM, Matthew Weier O'Phinney
<matthew@zend.com> wrote:
> Nested partials work, but I'd recommend against them. partial() clones
> the view object... and all helpers... and all filters... It's a bit
> resource intensive, though relatively performant. I recently tested this
> (nested partials) as I was investigating ways to make partial() more
> performant (though I ultimately did not come up with anything), so I
> know it works.

So what do you suggest? Should I just have everything in a large
partial? That's a little frustrating because it could become quite
large.

-=Dan

没有评论: