In the controller I have (I took out the sql):
$data = Entries::model()->findallbysql();
In the view I am calling a function with the data:
in the js function i am trying to alert the recieved data:
results into undefined.
However using this directly in the view works:
<?php echo $data->comment; ?>
What am i doing wrong?
How am I supposed to send data to js correctly?
Any help is greatly appreciated