Lithium PHP: Open view without layout -
i using php framework lithium (aka li3). want able open view (ie without layout) in jquery dialog box. ideally, done small modification url, example:
normal path action: http://localhost/controller/action/ view path action: http://localhost/controller/action/view_only/
this still has work normal url parameters , requests. additionally, love not have change existing controllers.
does know how achieve this?
thanks, max.
// in controller: if ($somecondition) { $this->_render['layout'] = false; } // ...where $somecondition based on whatever url modification
Comments
Post a Comment