Welcome Guest, Not a member yet? Register   Sign In
problem with model
#3

[eluser]solquagerius[/eluser]
here is my code :

controller file : connexion.php
Code:
class Connexion extends Controller {
        
        function Connexion()
        {
            parent::Controller();
            $this->load->model('Connexion_model','',TRUE);
        }
        
        function index()
        {
            $this->load->view("connexion_view");
        }
      }

model file : connexion_model.php
Code:
class Connexion_model extends Model() {
        
        function Connexion_model()
        {
            parent::Model();
        }
        
        function get_something()
        {
            $query = $this->db->get('user', 10);
            return $query->result();
        }
    }

When i remove the line "$this->load->model..." the index funtion works, otherwise it's not called.


Messages In This Thread
problem with model - by El Forum - 02-01-2009, 04:51 AM
problem with model - by El Forum - 02-01-2009, 07:36 AM
problem with model - by El Forum - 02-01-2009, 07:54 AM
problem with model - by El Forum - 02-01-2009, 08:07 AM
problem with model - by El Forum - 02-01-2009, 08:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB