Re: Tr.lời: Re: Load content into static page with ajax

2011-05-31 Thread heohni
Thats the solution! Simple include of RequestHandler component will do all automagically. THANKS!! On 31 Mai, 11:47, Điển vũ wrote: > Sorry, cakephp don't set $this->autoRender = false. But it will check your > ajax.ctp. I only need create blank layout ajax.ctp > echo $content_for_layout; > ech

Re: Tr.lời: Re: Load content into static page with ajax

2011-05-31 Thread heohni
Hi, I have this file already: views/layouts/ajax.ctp But I don't understand how to use this now in my case? Imagine, I only call my index. And from there I need to catch the clicked link with jquery and need to exchange the content of a specific div with the content of a ctp file. On 31 Mai, 1

Tr.lời: Re: Load content into static page with ajax

2011-05-31 Thread Điển vũ
Sorry, cakephp don't set $this->autoRender = false. But it will check your ajax.ctp. I only need create blank layout ajax.ctp writeBuffer(); // recommmend ?> -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.

Tr.lời: Re: Load content into static page with ajax

2011-05-31 Thread Điển vũ
CakePHP auto set $this->autoRender = false when you request ajax .But you must create views/layouts/ajax.ctp . -- 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 Cak