Hello world tutorial |
[eluser]downah[/eluser]
Hi guys, I am trying out the hello world tutorial this is what I have in blog.php Code: <?php I try going to website.com/codeigniter/index.php/blog/ and it loads a blank page.. I even try to specify by going to website.com/codeigniter/index.php/blog/index/ but it doesnt work either no errors are showing or anything, what am I doing wrong? Much appreciated
[eluser]downah[/eluser]
hmm I just read in the documentation Code: <?php and that works, is the tutorial on the main website outdated? can anyone explain it to me ?
[eluser]downah[/eluser]
Thanks for the quick reply, is the blog tutorial also outdated?
[eluser]skunkbad[/eluser]
[quote author="downah" date="1343498075"]Thanks for the quick reply, is the blog tutorial also outdated? [/quote] Yes, I believe it is also outdated. If you'd like to see how you can handle many common website solutions, and how CI works, you might consider downloading my Community Auth application. It is already installed in CI 2.1.2: https://bitbucket.org/skunkbad/community...et/tip.zip
[eluser]downah[/eluser]
Well no not really but thanks, one of the main reasons I started playing around with CI is because of the video tutorials.. but knowing they would have outdated code right there playing on their main website for new users to see... maybe cakePHP is more what I am looking for
[eluser]skunkbad[/eluser]
[quote author="downah" date="1343500820"]Well no not really but thanks, one of the main reasons I started playing around with CI is because of the video tutorials.. but knowing they would have outdated code right there playing on their main website for new users to see... maybe cakePHP is more what I am looking for [/quote] There are a lot of video tutorials at Nettuts+. They have a "CodeIgniter From Scratch" series. The first one is here: http://net.tutsplus.com/articles/news/co...tch-day-1/ These tutorials are more or less relevant to the current version of CI. If you've never used a PHP framework, then you'll find that CI is the easiest to learn. All the CI forum members that don't know a dang thing about PHP is probably a testimony to that.
[eluser]downah[/eluser]
Thanks for those tutorials, will have a look at them and see where that leads me with CI, I have done some small things with ZF and like it but it is huge, and a fair share of PHP programming. I just hate things like outdated tutorials on the main page!!
[eluser]downah[/eluser]
So far enjoying the tutorials, thanks again for letting me know about them. I have got a small error though for hope someone here could help and don't feel the need to create a new thread. I am getting this error: A PHP Error was encountered Severity: Notice Message: Undefined property: stdClass::$title Filename: views/home.php Line Number: 19 home: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" Active records are set to true this is the model: Code: <?php and this is the controller: Code: <?php Any help greatly appreciated!
[eluser]skunkbad[/eluser]
Are there actual records being returned? In your model, there's no reason to foreach over the result set. Just simply return q->result(). Code: if( $q->num_rows() > 0 ) Then, in your view: Code: // Make sure records is not FALSE |
Welcome Guest, Not a member yet? Register Sign In |