Welcome Guest, Not a member yet? Register   Sign In
Problem with function Blog() in first tutorial.
#1

[eluser]SimonLove2009[/eluser]
Hi

I've just completed the first tutorial, but I've run into a problem right at the end—In the tutorial, he recommends inserting a function Blog() to make sure the Blog class is always called. However, this by itself causes a php error. The error is rectified in the tutorial by inserting - parent::Controller();

When I put parent::Controller(); into my code, the view page just appeared to be empty. Why is this? I copied the code very carefully indeed. I even tried changing parent::Controller(); to parent:: CI_Controller(); as per in the class at the top my blog.php—Still no joy. What am I doing wrong?

Kind regards

Simon


Messages In This Thread
Problem with function Blog() in first tutorial. - by El Forum - 10-02-2012, 05:17 AM
Problem with function Blog() in first tutorial. - by El Forum - 10-02-2012, 06:47 AM
Problem with function Blog() in first tutorial. - by El Forum - 10-02-2012, 07:10 AM
Problem with function Blog() in first tutorial. - by El Forum - 10-02-2012, 07:57 AM
Problem with function Blog() in first tutorial. - by El Forum - 10-02-2012, 08:09 AM
Problem with function Blog() in first tutorial. - by El Forum - 10-02-2012, 08:11 AM
Problem with function Blog() in first tutorial. - by El Forum - 10-02-2012, 08:25 AM
Problem with function Blog() in first tutorial. - by El Forum - 10-02-2012, 08:27 AM
Problem with function Blog() in first tutorial. - by El Forum - 10-02-2012, 08:42 AM
Problem with function Blog() in first tutorial. - by El Forum - 10-02-2012, 08:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB