Welcome Guest, Not a member yet? Register   Sign In
how load one controller in to a controller?
#3

[eluser]Bl4cKWid0w[/eluser]
I've found that the easiest way to load header information is to use a model.

Model Example:
Code:
<?php

class constant extends Model {

     function constant(){
          parent::Model();
     }

     function header(){

             //Your information
     }

}

Then just use $this->load->model('constant'); to load the model, and $this->constant->header(); to load the function.


Messages In This Thread
how load one controller in to a controller? - by El Forum - 12-31-2008, 08:25 AM
how load one controller in to a controller? - by El Forum - 12-31-2008, 08:53 AM
how load one controller in to a controller? - by El Forum - 12-31-2008, 08:58 AM
how load one controller in to a controller? - by El Forum - 12-31-2008, 09:06 AM
how load one controller in to a controller? - by El Forum - 01-01-2009, 03:29 AM
how load one controller in to a controller? - by El Forum - 01-01-2009, 04:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB