Hi all,
I am learning cakePHP 1.26. and JQuery
In a Controller, I got two an action with these lines of codes :
function testing(){
$a = $this->User->findallByuser_id(1);
$b = $this->User->Post->findallByuser_id(1);
return a+b; // I was trying to return Array data $a and $b
}
how would you return two groups of Array data ($a and $b) to be accessed by JQuery AJAX?
Please help if you could.