Welcome Guest, Not a member yet? Register   Sign In
Unable to locate model
#6

[eluser]John_Betong[/eluser]
Hi eoghanobrien,

I copied your library exactly to my test/Jokes site and got the following errors:

Code:
class News_model extends Model { function News_model() { parent::Model(); } function get_news($num = 0, $offset = 0) { /* $num = (isset($num)) ? $num : 0; $offset = (isset($offset)) ? ', '.$offset : ', 0'; $query = $this->db->query("SELECT * FROM `cms_news` ORDER BY news_date DESC LIMIT $num, $offset"); return $query; */ } }

Fatal error: Class 'News_model' not found in C:\awww\ci_system\libraries\Loader.php on line 166

Special Note:
The extended errors are due to a 404 addon - search and see the relevant Wiki.

I wrapped your code in <?php ?> and it works fine on my computer. I hope that solves your problem.

Cheers,

John_Betong
 


Messages In This Thread
Unable to locate model - by El Forum - 09-20-2007, 06:14 AM
Unable to locate model - by El Forum - 09-20-2007, 06:26 AM
Unable to locate model - by El Forum - 09-20-2007, 06:30 AM
Unable to locate model - by El Forum - 09-20-2007, 06:40 AM
Unable to locate model - by El Forum - 09-20-2007, 06:47 AM
Unable to locate model - by El Forum - 09-20-2007, 07:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB