Welcome Guest, Not a member yet? Register   Sign In
Arrays and views
#6

[eluser]alejandronanez[/eluser]
So, that will be like this:

Controller

Code:
$data['main_content'] = 'ar_en_nom_view';
        $data['prueba']['arg1'] = 'example1';
        $data['prueba']['arg2'] = 'example2';
        
        $this->load->view('includes/template',$data);

If I want to pass the 'arg1' and 'arg2' here, I've tried this and say that there's and error

View:

Code:
<?php $this->load->view($main_content, array('prueba'=> $arg1, $arg2)); ?>

Confusednake:

I'm new to this, please be patient :'(

Thanks again for helping me


Messages In This Thread
Arrays and views - by El Forum - 01-18-2010, 04:01 PM
Arrays and views - by El Forum - 01-18-2010, 04:45 PM
Arrays and views - by El Forum - 01-18-2010, 04:56 PM
Arrays and views - by El Forum - 01-18-2010, 05:00 PM
Arrays and views - by El Forum - 01-18-2010, 05:00 PM
Arrays and views - by El Forum - 01-18-2010, 05:55 PM
Arrays and views - by El Forum - 01-18-2010, 06:04 PM
Arrays and views - by El Forum - 01-18-2010, 06:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB