Model Class Problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Model Class Problem (/showthread.php?tid=3505) |
Model Class Problem - El Forum - 10-06-2007 [eluser]Unknown[/eluser] I have my add() function in the controller.. Code: function add(){ When I call this function, I get this error: Fatal error: Using $this when not in object context in C:\xampp\htdocs\RSS\system\application\models\FeedList.php on line 13 this is my feedList.php file: Code: class FeedList extends Model { Anyway seems to be I cannot create a FeedList class inside of the FeedList class.. I already try construct() function it didnt work. Can you tell me where I do wrong? Thanks.. Model Class Problem - El Forum - 10-06-2007 [eluser]Delian Angelov[/eluser] hm, this: Code: public static function add( $url ) { probably should be : Code: public function add( $url ) { ? just my 2 cents ... Model Class Problem - El Forum - 10-06-2007 [eluser]Unknown[/eluser] Thank you!! I didint notice that! I will give you 2 cents just give me your bank account number |