[eluser]Peejk[/eluser]
Hello, I just started using CodeIgniter yesterday and I have watched the tutorials and I'm pretty sure I've got the coding right but I get a parse error when I upload..
Here's the error;
Parse error: syntax error, unexpected $end in /home/hmdwebde/public_html/blog/system/application/controllers/blog.php on line 39
Any help?
I've looked at my blog.php but it looks fine, heres my blog.php;
Code:
<?php
class Blog extends Controller {
function Blog()
{
parent::Controlloer();
$this->load->helper('url');
$this->load->helper('form');
$this->load->scaffolding('entries');
}
function index()
{
$data['title'] = "My Blog Title";
$data['heading'] = "My Blog Heading";
$data['query'] = $this->db->get('entries');
$this->load->view('blog_view', $data);
}
function comments()
{
$data['title'] = "My Comment Title";
$data['heading'] = "My Comment Heading";
$this->db->where('entry_id', $this->uri->segment(3));
$data['query'] = $this->db->get('comment');
$this->load->view('comment_view', $data);
}
function comment_insert()
{
$this->db->insert('comments', $_POST);
redirect('blog/comments/'.$_POST['entry_id']);
}
?>
Are there any other files you need to see?
Thanks In Advance,
Hugo