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);
}


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.