Seems to be a bug with first video 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: Seems to be a bug with first video tutorial (/showthread.php?tid=2448) |
Seems to be a bug with first video tutorial - El Forum - 08-06-2007 [eluser]ceej[/eluser] Hi there, I've just followed the first video tutorial down to a T and the ol comes out blank. all it displays is: My Blog Heading 1. 2. 3. As you can see the li is blank, he is the code i have in the blog.php and the blog_view.php blog.php Code: <?php blog_view.php Code: <html> Any ideas on what's going wronge? Seems to be a bug with first video tutorial - El Forum - 08-06-2007 [eluser]Michael Wales[/eluser] This line is wrong: Code: <li><?php $item ?></li> PHP is expecting some sort of function to occur. Right now you're just throwing a variable at it and not telling it what to do (I'm surprised you just didn't end up with a completely blank screen). Change that line to: Code: <li><?php echo $item; ?></li> Or, if you want - use the shorthand tag to automatically echo: Code: <li><?= $item; ?></li> Seems to be a bug with first video tutorial - El Forum - 08-06-2007 [eluser]ceej[/eluser] Thank you very much, i did not know this. But i do now +1 for codeigniter |