Welcome Guest, Not a member yet? Register   Sign In
array of data
#4

CodeIgniter assign the first keys of an array as variables. Example:

Controller:

$data['followings'] = $this->db->get('followings')->result_array();
$this->load->view('followings', $data);

View:

print_r($followings);

Learn the User Guide: https://codeigniter.com/user_guide/tutor...pages.html
Reply


Messages In This Thread
array of data - by anmol - 04-14-2017, 02:51 AM
RE: array of data - by neuron - 04-14-2017, 03:08 AM
RE: array of data - by anmol - 04-14-2017, 06:05 AM
RE: array of data - by natanfelles - 04-14-2017, 06:50 AM
RE: array of data - by dave friend - 04-14-2017, 08:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB