On May 11, 2011, at 14:28, brandon buster wrote: > I've been reading Beginning Cakephp and Practical Cakephp Projects, > both printed by Apress. Both books use version 1.2 and so far in all > the tutorials I can't get the Javascript or Ajax functions to work. > > It seems there're problems with the HttpRequests, but I'm sure it's > not the code as I've copied it straight from the books. > > Are there any issues that are likely the root of the problem here? > Perhaps PHP 5.3.5 is not compatible with the Prototype library?
PHP is a server-side scripting language. Prototype is a client-side JavaScript library. They have nothing to do with one another, no opportunity to cause each other any incompatibilities. CakePHP 1.2 is old. In CakePHP 1.3 the JavaScript functions were rewritten -- the JavaScript helper is deprecated and replaced with the new Js and Html so any CakePHP documentation you are following about using CakePHP to generate JavaScript code will probably not be correct. I would refer you to the online CakePHP cookbook: http://book.cakephp.org/ See "Deprecated Helpers" under here: http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3#View-and-Helpers-1566 You may want to read that entire page, to see what other information you've learned from your CakePHP 1.2 book needs to be changed to be applicable to CakePHP 1.3. -- 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
