On Sat, Mar 12, 2011 at 11:03 PM, Ryan Schmidt <[email protected]> wrote: > > On Mar 12, 2011, at 03:46, heohni wrote: > >> As this is the details page of a member, can I open somehow just the >> view template without the surrounding default.ctp? > > You would need to give this view a different layout, then -- one that > basically does nothing other than echo $content_for_layout and maybe a > minimal HTML skeleton.
Create a layout named 'ajax.ctp'. In the controller: $this->layout = 'ajax'; Also, instead of opening a new window, you could create a pop-up layer, which will give you far more control of the look. Then load the content into the div with an AJAX request. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
