[Solar-talk] Nested controllers

Travis Swicegood development at domain51.com
Thu Oct 19 11:08:55 PDT 2006


Paul M Jones wrote:
> On Oct 19, 2006, at 9:44 AM, Travis Swicegood wrote:
>
>   
>>> Besides page-types (html/rss/pdf/etc) and site layouts, what would
>>> this be used for?  I can think of other ways to respond to page-type
>>> requests that are more transparent, and for layouts we can put all
>>> the in the layout scripts.
>>>
>>>       
>> The big thing this is used for is to provide a means in the URL of
>> pulling out the display elements and rendering one controller/action
>> output - for AJAX calls.
>>
>> Granted, it could be done with a ?out=ajax at the end, but that's less
>> elegant that submitting to bookmark/edit instead of site/bookmark/ 
>> edit.
>>     
>
> This is a recent development, but you can check $this->_request->isXml 
> () to see if the "X-Requested-With" header is "XmlHttpRequest".  Easy  
> AJAX recognition; thank Clay for having that idea.  :-)
>   

This might just be the ticket for my particular use.  I'll play around 
with it a bit and see what I can come up with.

-Travis


More information about the solar-talk mailing list