![]() |
Problem with the news tutorial - 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: Problem with the news tutorial (/showthread.php?tid=50299) |
Problem with the news tutorial - El Forum - 03-21-2012 [eluser]vYN[/eluser] Hi. I'm new to CI. My problem is that news page is blank. No text at all. Nothing. I will post my news controller.(ask me if you need more.) Code: <?php Problem with the news tutorial - El Forum - 03-21-2012 [eluser]InsiteFX[/eluser] Code: | Remove the s on views Problem with the news tutorial - El Forum - 03-21-2012 [eluser]vYN[/eluser] ye ok. But the page is still blank as you can see here: http://sys.homiecraft.org/1/news but if i comment out: Code: function __construct(){ the page works. but does not show news. And on news/create i can't see the form. Problem with the news tutorial - El Forum - 03-21-2012 [eluser]InsiteFX[/eluser] I would check your routes below does not look right. Code: http://sys.homiecraft.org/1/news Problem with the news tutorial - El Forum - 03-21-2012 [eluser]vYN[/eluser] Code: $route['news/create'] = 'news/create'; Problem with the news tutorial - El Forum - 03-21-2012 [eluser]CroNiX[/eluser] The userguide for routes state at the very bottom of the page that the default_controller (and 404_override) need to come before any routes that use regular expressions. Problem with the news tutorial - El Forum - 03-21-2012 [eluser]vYN[/eluser] i guess. But it doesn't resovle my issue. Problem with the news tutorial - El Forum - 03-21-2012 [eluser]CroNiX[/eluser] It solved another issue you didn't know you had because you haven't discovered it yet. ![]() Problem with the news tutorial - El Forum - 03-21-2012 [eluser]vYN[/eluser] haha ok ^^ Problem with the news tutorial - El Forum - 03-21-2012 [eluser]InsiteFX[/eluser] Do a var_dump or print_r to see if your getting any data from your model! |