Sam Collett wrote: > > Perhaps a bit off topic, but maybe still relevant: > > I am looking at CakePHP (http://cakephp.org/) and WildFlower (http:// > wf.klevo.sk/, which uses jQuery) for future sites, so would change the > view in the controller if the request is an ajax one. > Note: not tested yet. > > if($_SERVER["X-Requested-With"] == "XMLHttpRequest") > { > $this->viewPath = "ajax"; > $this->render("contentonly"); > } > > Reference: > http://www.lost-in-code.com/php-code/cakephp-change-view-file-from-controller/ > That's good to hear. It's a much cleaner approach too not having to also mess around with the front-end :)
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
