I am relatively new to CakePHP and was wondering how advanced users structure their ajax methods. The purpose of code this is to create a JSON list of matched products for
I use an ajax layout with nothing in it except
Then I just make an autocomplete.ctp view in which I echo the json encoded variable.
autocomplete.ctp