Problem with the news tutorial |
[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
[eluser]InsiteFX[/eluser]
Code: | Remove the s on views
[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.
[eluser]InsiteFX[/eluser]
I would check your routes below does not look right. Code: http://sys.homiecraft.org/1/news
[eluser]vYN[/eluser]
Code: $route['news/create'] = 'news/create';
[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.
[eluser]CroNiX[/eluser]
It solved another issue you didn't know you had because you haven't discovered it yet. ![]()
[eluser]InsiteFX[/eluser]
Do a var_dump or print_r to see if your getting any data from your model! |
Welcome Guest, Not a member yet? Register Sign In |