-- Joshua Ross <[EMAIL PROTECTED]> wrote
(on Thursday, 13 March 2008, 07:44 AM -0400):
> I think that the manual is not clear on this, but even if the default 
> context is xml you must still pass the format/xml/ HTTP GET params to all 
> actions in order to trigger the context switcher.  Feature request!  =]

Passing the format in initContext() *should* trigger it to work; I'll
see if I can reproduce soon and get back to the list.

> "Joshua Ross" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
> > I'm having some problems using the context switcher when I try to default 
> > the context to 'xml'.  It tells me that the default context is xml but it 
> > doesn't load the xml.phtml files.  Here is my code per the manual:
> >
> >    public function init()
> >    {
> >        //set all context to xml
> >        $this->_helper->contextSwitch()->initContext('xml');
> >
> >    }
> >
> > It simply does not load my xml.phtml files.  What am I doing wrong?

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to