Welcome Guest, Not a member yet? Register   Sign In
Passing multiple arrays to view
#1

[eluser]Funky Fresh[/eluser]
Hey Ya'll

I was wondering how i would pass the following title through to the view if $message is already being sent thorugh.

Code:
function _show_message($message)
    {
        $data['title'] = 'Signup - ';
        $this->load->view('signup/success', array('message' => $message));
    }
#2

[eluser]cahva[/eluser]
Put the title also to the array.. or better define the array before the load->view:
Code:
function _show_message($message)
{
    $data = array(
        'title' => 'Signup - ',
        'message' => $message
    );
    
    $this->load->view('signup/success', $data);
}




Theme © iAndrew 2016 - Forum software by © MyBB