Created
January 31, 2011 11:19
-
-
Save jlebrech/803918 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
class page extends CI_Model { | |
var $code = ""; | |
var $permalink = ""; | |
function __construct() | |
{ | |
parent::__construct(); | |
} | |
function get_page($permalink) | |
{ | |
return $this->db->get_where('pages',array('permalink'=>$permalink)); | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What am i doing wrong?
Fatal error: Call to a member function get_where() on a non-object