I'm trying to pass two arrays ($a_1 and $a_2) from my controller to my view like so:
$this->load->view('confirm_data_v', $a_1, $a_2);
In my view I want to print the value of one of them doing this:
<p><?php echo $name ?></p>
<p><?php echo $mail ?></p>
when I print each array I get this:
Array
(
[name] => jon
)
Array
(
[mail] => blabla@server.com
)
$name is a field inside $a_1 and $mail is a field inside $a_2, but it seems like the view doesn't know where these fields are, I mean, it doesn't know in wich array is $name and $mail, wether $a_1 or $a_2. How do I do that?.