Welcome Guest, Not a member yet? Register   Sign In
Repetive html with based on dynamic data - view partial vs helper
#5

[eluser]msteudel[/eluser]
[quote author="Mischievous" date="1272070398"]Whats your controller look like?[/quote]

Here's my controller:

Code:
function __construct()
    {
    parent::Controller();
    $this->load->library('pearloader');
    $this->load->model( 'district_model' );
    $this->load->model( 'state_model' );
    }

    function index()
    {
    $data['title'] = ' Admin > Districts | Math Monster Mystery';
    $data['districts'] = $this->district_model->get_districts();
    
    $this->load->view( 'main_template', $data );
    }

// more unrelated methods

}


Messages In This Thread
Repetive html with based on dynamic data - view partial vs helper - by El Forum - 04-23-2010, 02:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB