2008年8月9日星期六

Re: [fw-mvc] Prevent action from being executed

On 8 Aug 2008, at 14:38, Matthew Weier O'Phinney wrote:

> -- Greg Freeman <greg@imagize.com.au> wrote
> (on Thursday, 07 August 2008, 09:11 PM -0700):
>> Every information article/book I've seen has used the action stack to
>> do this so it is interesting you should say this matthew,
>
> Those articles and books are not written by me. :)

<snip>

> Honestly, I'd recommend creating a view helper that queries the model
> and prepares the content instead of using action(). action() is
> expensive in terms of processing, and leads to issues just like the
> one
> you're experiencing. :)

Matthew,

Just for a sense of completeness here, can I ask you for your
thoughts on the kind of cases for which the action stack is appropriate?

Thanks,
Carlton

没有评论: