I've success get data on controller with php native and show in the view the code like this:
controller
function help(){
$data['result'] = array("name" => "jason", "age" => 20);
$this->load->view('profiles', $data); }
and view like this
foreach ($result as $key) {
echo $key;
}
and result will be show "jason 20"
The question is how to execute like that with ajax without load the url?