![]() |
Tutorial − News section error - 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: Tutorial − News section error (/showthread.php?tid=55197) |
Tutorial − News section error - El Forum - 10-14-2012 [eluser]Unknown[/eluser] I,m going through the News section tutorial and I am getting an error following the instructions. Does anyone know why this is? Open up the application/models directory and create a new file called news_model.php and add the following code. Make sure you've configured your database properly as described here. Code: <?php Code: public function get_news($slug = FALSE) Adding the second block of code to news_model.php produces a syntax error on line Code: public function get_news($slug = FALSE) |