for a whole controller you can just do

var $layout = 'my_layout'; at the top of the class.

On Jul 6, 5:23 am, Geoff Ford <[EMAIL PROTECTED]> wrote:
> @mee
>
> To change a layout for an action put $this->layout = "layout_name"; in
> the action.
> For a whole controller you can put it in beforeFilter()
>
> @InVINCable
>
> jQuery works fine with cake.  If you are using cakes ajax helpers
> which requires prototype you need to use the noConflict directive in
> jQueryhttp://docs.jquery.com/Using_jQuery_with_Other_Libraries
>
> Geoff
> --http://lemoncake.wordpress.com
>
> On Jul 5, 6:58 am, inVINCable <[EMAIL PROTECTED]> wrote:
>
> > I am trying to get jquery to work with cake as well, so if anyone has
> > any ideas that would be great.
>
> > On Jul 4, 12:26 pm, Contrid <[EMAIL PROTECTED]> wrote:
>
> > > Thanks for the responses guys! Greatly appreciated!
>
> > > I could use the 'ajax' feature...
> > > But the problem is that I'll then need the Scriptaculous libraries
> > > included.
> > > I don't want that, since I already have jQuery integrated.
> > > How can I make jQuery work with this?
>
> > > Best,
>
> > > On Jul 4, 8:00 pm, "[EMAIL PROTECTED]"
>
> > > <[EMAIL PROTECTED]> wrote:
> > > > All you need to do is type $this->render('view_name','ajax');
>
> > > > ajax is a layout which just contains <?php echo $content_for_layout; ?
>
> > > > > without all the usual layout.ctp stuff.
>
> > > > this also follows if for whatever reason you need to change the
> > > > layout. (checkout the manual page on controllers for how render works)
>
> > > > Simon
>
> > > > On Jul 4, 5:07 pm, Contrid <[EMAIL PROTECTED]> wrote:
>
> > > > > Hi there,
>
> > > > > Within my current view, I want to include another view.
> > > > > I tried using :
>
> > > > > <?= $this -> render('view_name'); ?>
>
> > > > > ...but it renders the entire layout.
> > > > > I just want the content inside of the view file.
>
> > > > > How can I accomplish this?
> > > > > Thank you for your help.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to