Problem with Tutorial, part II - "News section"... |
[eluser]Matteo[/eluser]
I am having trouble with the second tutorial here... Code: ellislab.com/forums/newtopic/51/ The first tutorial parsed fine for me, but this one is showing a blank page. My model file ('news_model.php') has the following code... Code: <?php My view file ('views/news/index.php') looks like this... Code: <?php foreach ($news as $news_item): ?> and the ('views/news/view.php') file looks like this... Code: <?php For my controller file, I have the following... Code: <?php I tried going through the tutorial 3 times, the last time simply cutting/pasting the code from the tutorial itself instead of typing it in (a better way to learn... ) All I get is a blank page. No errors reporting, but no content either. (Yes, my database has 6 rows of data in it.) Please help!
[eluser]Unknown[/eluser]
I was getting the same blank page, I am new to using frameworks. I copied and pasted the code just to ensure that what was done was right. However I found the solution http://www.phpfreaks.com/forums/index.ph...c=354265.0 where the code was clearly visable.
[eluser]Unknown[/eluser]
I have tried all the suggestions in this and the suggested thread and still no success. I still get a blank page, and no error. http://localhost/name/index.php/news is the url I'm using. Anyone else have any other suggestions please?
[eluser]morismc[/eluser]
I've also the same problem. After calling $this->load->model('news_model'); the page stays blank. |
Welcome Guest, Not a member yet? Register Sign In |