Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why use CakePhp AJAX helper instead of jQuery?

I'm just starting using cakePHP and I saw on that there was an AJAX Helper in it.

My question is simple : should I rather use this helper or should I keep doing AJAX with jQuery? Are there any changes I should perform in existing jQuery AJAX calls?

Thanks

like image 495
Michael Lumbroso Avatar asked Aug 16 '10 14:08

Michael Lumbroso


1 Answers

I don't use the helper at all. Not in Rails, not in CakePHP. I've never cared much for server-side technologies writing my client-side code. I'd much rather include the libraries (I do use Cake's HTML helper for this) and write the javascript/jQuery code myself. Maybe I'm a control freak, but I feel like it gives me a better handle on what's going on under the hood.

like image 161
Rob Wilkerson Avatar answered Sep 21 '22 18:09

Rob Wilkerson