Welcome Guest, Not a member yet? Register   Sign In
Error when using db library (set to autoload)
#8

[eluser]Ren83[/eluser]
Here is some more info:
This is the default controller from wich i call to Staff controller -

Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Main extends CI_Controller {

    function __construct(){
        parent::__construct();
    }

    function index(){

           $question = new Staff(1);

    }
}

And here is the Staff controller wich call to Staff model the i reminded previous post:

Code:
class Staff extends CI_Controller
{
           private $data;
            public function __construct($serial)
           {
                     parent::__construct();
                     $this->load->model('Staff_m');
                     $this->data = $this->Question_m->get_staff_data($serial);
          }
}


Messages In This Thread
Error when using db library (set to autoload) - by El Forum - 07-28-2011, 03:37 PM
Error when using db library (set to autoload) - by El Forum - 07-28-2011, 08:32 PM
Error when using db library (set to autoload) - by El Forum - 07-29-2011, 02:47 AM
Error when using db library (set to autoload) - by El Forum - 07-29-2011, 03:01 AM
Error when using db library (set to autoload) - by El Forum - 07-29-2011, 03:27 AM
Error when using db library (set to autoload) - by El Forum - 07-29-2011, 03:37 AM
Error when using db library (set to autoload) - by El Forum - 07-29-2011, 05:56 AM
Error when using db library (set to autoload) - by El Forum - 07-29-2011, 07:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB