Welcome Guest, Not a member yet? Register   Sign In
jumping into the pool: 1st App
#3

[eluser]Bart v B[/eluser]
Hmm... is this not a better idea? Wink
Code:
<?php

class Login extends Controller {

    function __construct()
    {
        parent::Controller();
        // just use the name and not the extention ;)
        $this->load->model('login_db');
  
    }
    
    // This is the default action when noting is happen..
    function index()
    {
         //this is the view.
        $this->load->view('login');
    }

    function user()
    {
        // here we want to do something with the model..
        $this->login_db->doSomething();
    }
}


Messages In This Thread
jumping into the pool: 1st App - by El Forum - 10-11-2010, 12:51 PM
jumping into the pool: 1st App - by El Forum - 10-11-2010, 02:37 PM
jumping into the pool: 1st App - by El Forum - 10-11-2010, 03:30 PM
jumping into the pool: 1st App - by El Forum - 10-11-2010, 03:33 PM
jumping into the pool: 1st App - by El Forum - 10-11-2010, 03:35 PM
jumping into the pool: 1st App - by El Forum - 10-11-2010, 03:38 PM
jumping into the pool: 1st App - by El Forum - 10-11-2010, 03:42 PM
jumping into the pool: 1st App - by El Forum - 10-11-2010, 03:54 PM
jumping into the pool: 1st App - by El Forum - 10-11-2010, 03:56 PM
jumping into the pool: 1st App - by El Forum - 10-11-2010, 04:01 PM
jumping into the pool: 1st App - by El Forum - 10-11-2010, 04:02 PM
jumping into the pool: 1st App - by El Forum - 10-11-2010, 04:04 PM
jumping into the pool: 1st App - by El Forum - 10-11-2010, 04:05 PM
jumping into the pool: 1st App - by El Forum - 10-11-2010, 04:13 PM
jumping into the pool: 1st App - by El Forum - 10-11-2010, 04:16 PM
jumping into the pool: 1st App - by El Forum - 10-11-2010, 04:31 PM
jumping into the pool: 1st App - by El Forum - 10-11-2010, 05:01 PM
jumping into the pool: 1st App - by El Forum - 10-11-2010, 05:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB