how can I call the values from the table that joined, it joined to the same id of the table,
-------------Model-----------------
public function joinArray() {
return array(
'user|left' => 'user.user_id = notif.notif_sender_user_id',
'user|left' => 'user.user_id = notif.notif_receiver_user_id'
);
}
--------- JS View -------------
{ "data": " // the first value"},
{ "data": " // the second value"},
how can I call the values from the table that joined, it joined to the same id of the table, -------------Model----------------- public function joinArray() { return array( 'user|left' => 'user.user_id = notif.notif_sender_user_id', 'user|left' => 'user.user_id = notif.notif_receiver_user_id' ); }
--------- JS View ------------- { "data": " // the first value"}, { "data": " // the second value"},