Welcome Guest, Not a member yet? Register   Sign In
Help with nested views and load->vars
#7

[eluser]neilw[/eluser]
This kind of thing.

Code:
class Games extends Controller {

    var $data=NULL;
    var $menu=NULL;
        
    function Games()
    {
        parent::Controller();
        $this->load->database();
        $this->load->library('parser');
        $this->load->model('games_model');
        $this->menu=$this->games_model->Get_games_menu_helper();
    }

    function index()
    { $this->status(); }

    function status($subtype='finished')
    {
        $this->data['gamesinfo']=$this->games_model->Get_game_and_users($subtype);
        $this->data['gamesinformationlist']=$this->parser->parse('core/gamesdetails',$this->menu,TRUE);
        $this->_standard_games();
    }
    
    function _standard_games()
    {
        $this->data['gamesmenuvertical']=$this->parser->parse('core/gamesmenuvertical',NULL,TRUE);
        $this->load->view('core/startofpage',$this->data);
        $this->parser->parse('gameslistings',$this->data);
        $this->load->view('core/endofpage',$this->data);
    }
}


Messages In This Thread
Help with nested views and load->vars - by El Forum - 03-23-2010, 06:56 PM
Help with nested views and load->vars - by El Forum - 03-23-2010, 07:17 PM
Help with nested views and load->vars - by El Forum - 03-23-2010, 07:42 PM
Help with nested views and load->vars - by El Forum - 03-23-2010, 10:08 PM
Help with nested views and load->vars - by El Forum - 03-24-2010, 04:17 PM
Help with nested views and load->vars - by El Forum - 03-24-2010, 08:03 PM
Help with nested views and load->vars - by El Forum - 03-25-2010, 03:17 PM
Help with nested views and load->vars - by El Forum - 03-26-2010, 09:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB