Saturday, March 12, 2011

Re: link helper question

On Sat, Mar 12, 2011 at 11:03 PM, Ryan Schmidt
<google-2010@ryandesign.com> 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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate