Hi,
I was a big fan of all of these MVC frameworks in the past, but the more I tried to write something based on them, the more time I spent on learning how to get around their restrictions. Unlike CI, the CAKE is not that js friendly, while symfony allows ajax and js integration flawlessly.
Here is a link of a tutorial on how to pass data from the controller to javascript files, and I hope this will help you.
good luck to you.