Get A Php Array With Ajax

Hello Budies;

I have code like this:




$items = Object::model()->findAll($criteria);

echo CJSON::encode($items);



and I want to read this in JQuery through AJAX respond.

First of all is my code true?

And then in my js file, first I parse that respond value and now I am confused to keep on,

Am I have to put that in foreach loop?

Any help will be appreciated

Thanks in advance

:rolleyes: Help Me!!!