Welcome Guest, Not a member yet? Register   Sign In
Passing more than one variable in a template view??
#5

[eluser]Skoobi[/eluser]
so if im following id have it like this in the

Code:
class Gallery extends CI_Controller {

    function __construct()
    {
        parent::__construct();
        $this->load->library('image_CRUD');
    }


    
    function _example_output($output = null)
    {
        $this->data['gallery'] = $output;
        $this->data['subview'] = "admin/gallery/index";
        $this->load->view('admin/_layout_main', $this->data);  
        var_dump($output);
    }
    
    function index()
    {  
        $this->_example_output((object)array('output' => '' , 'js_files' => array() , 'css_files' => array()));
    }  
    
    function view()
    {
        $image_crud = new image_CRUD();
        
        $image_crud->set_primary_key_field('id');
        $image_crud->set_url_field('url');
        $image_crud->set_table('example_1');
        $image_crud->set_image_path('assets/uploads');
            
        $output = $image_crud->render();
        
        $this->_example_output($output);    
    }
}


Messages In This Thread
Passing more than one variable in a template view?? - by El Forum - 01-28-2014, 10:17 AM
Passing more than one variable in a template view?? - by El Forum - 01-28-2014, 10:26 AM
Passing more than one variable in a template view?? - by El Forum - 01-28-2014, 10:28 AM
Passing more than one variable in a template view?? - by El Forum - 01-28-2014, 10:30 AM
Passing more than one variable in a template view?? - by El Forum - 01-28-2014, 10:34 AM
Passing more than one variable in a template view?? - by El Forum - 01-28-2014, 10:37 AM
Passing more than one variable in a template view?? - by El Forum - 01-28-2014, 10:43 AM
Passing more than one variable in a template view?? - by El Forum - 01-28-2014, 10:46 AM
Passing more than one variable in a template view?? - by El Forum - 01-28-2014, 10:47 AM
Passing more than one variable in a template view?? - by El Forum - 01-28-2014, 10:48 AM
Passing more than one variable in a template view?? - by El Forum - 01-28-2014, 10:53 AM
Passing more than one variable in a template view?? - by El Forum - 01-28-2014, 10:54 AM
Passing more than one variable in a template view?? - by El Forum - 01-28-2014, 11:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB