So here is the situation:
I'm trying to add a autocomplete textbox (using the Ajax helper
downloaded here: http://www.cakephp.bee.pl/ajax)

The autocomplete is on a textbox filtering movie names.

function movie_autoComplete() {
        $movieLocal = $this->Movie->find('all'); // some logic but now
deleted...

        $this->set('movies',$movieLocal);
        $this->layout = 'ajax';
    }

I even did this
function beforeFilter() {
        if($this->RequestHandler->isAjax()) {
            $this->layout = 'ajax';
        }
    }

All my helpers and components are in place in the controller, and the
ajax.ctp is the one from the core.
However when i type something in the textbox my result is my 'default'
page.

* <DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
* <html xmlns="http://www.w3.org/1999/xhtml";>
* ....

So i guess the layout is still on default however i specified it
should be ajax.

Anyone else encountered this problem or knows something that might
help?

-- 
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

Reply via email to