Welcome Guest, Not a member yet? Register   Sign In
how to pass array from view to controller
#6

(This post was last modified: 09-19-2017, 04:40 AM by olivedev.)

To pass data to view in codeigniter, especially for array, you can do this


PHP Code:
$data = array(
   'title' => 'Title',
   'heading' => 'Heading',
   'message' => ' Message'
);

$this->load->view('cwblogview'$data); 


For multi dimensional array you will have to create loops.

Source: https://www.cloudways.com/blog/how-to-pa...deigniter/
Reply


Messages In This Thread
RE: how to pass array from view to controller - by olivedev - 09-19-2017, 04:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB