2008年7月31日星期四

Re: [fw-core] AjaxContext and ContextSwitch question

-- Ramon de la Fuente <ramon@delafuente.nl> wrote
(on Thursday, 31 July 2008, 10:27 AM +0200):
> I have started using the AjaxContext helper, but I'm running into the
> problem that although the right viewscript is being called
> (action.ajax.phtml), the Layout is not being disabled by default. I read
> this should happen when using ContextSwitch, and in the maual it states
> that AjaxContext is a special case of ContextSwitch; Am I reading it
> wrong?

I've been using AjaxContext and ContextSwitch without issue. Is it
possible that you're forwarding to another action? That could
potentially re-enable the layout.

Otherwise, can you provide a reproduce case for me to examine?

--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/

没有评论: