Codeigniter NotificationDrodownData dropdown menu |
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/m5ee9yb5up37ht...9.png?dl=0 pic2= https://www.dropbox.com/s/lsohgvn7dfmxir...9.png?dl=0 pic3= https://www.dropbox.com/s/9b0ul0e79m7xvf...9.png?dl=0 am trying something youtube notification dropdown
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;
(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', |
Welcome Guest, Not a member yet? Register Sign In |