Codeigniter NotificationDrodownData dropdown menu - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: Codeigniter NotificationDrodownData dropdown menu (/showthread.php?tid=74454) |
Codeigniter NotificationDrodownData dropdown menu - tp45 - 09-25-2019 Hello am trying to get notifications for user everything works but i get wired data with \t\t\t\t\t\t\t\t\t\t\t Vp and Vdiv etc here is my code: Model PHP Code: public function getNotifcations($data_passed){ PHP Code: public function getAllNofications(){ Code: <script> pic1= https://www.dropbox.com/s/m5ee9yb5up37ht7/Screenshot%20%2859%29.png?dl=0 pic2= https://www.dropbox.com/s/lsohgvn7dfmxire/Screenshot%20%2860%29.png?dl=0 pic3= https://www.dropbox.com/s/9b0ul0e79m7xvf1/Screenshot%20%2861%29.png?dl=0 am trying something youtube notification dropdown RE: Codeigniter NotificationDrodownData dropdown menu - jreklund - 09-25-2019 I'm just going to guess here really, as it's hard to check the outputted data. But replace echo json_encode($return_string); with just echo $return_string; RE: Codeigniter NotificationDrodownData dropdown menu - tp45 - 09-25-2019 (09-25-2019, 10:35 AM)jreklund Wrote: I'm just going to guess here really, as it's hard to check the outputted data. But replace echo json_encode($return_string); with just echo $return_string;yes it works thank you. and it turns out that i should specify the data type if i do json_encode() datatype:' json', |