Welcome Guest, Not a member yet? Register   Sign In
A simple MVC sample, but cannot work well with loading model...
#6

[eluser]imn.codeartist[/eluser]
Code:
class Blog_model extends Model {
    function Blog_model()
    {
        parent::Model();
    }
      
    function getdata()
    {
        $query = $this->db->get('entries');
        return $query;
    }

print what is returning by getdata function
Code:
function getdata()
    {
        $query = $this->db->get('entries');

        echo $this->db->last_query();
        exit;
        return $query;
    }


Messages In This Thread
A simple MVC sample, but cannot work well with loading model... - by El Forum - 10-06-2009, 01:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB