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

[eluser]SimonLove2009[/eluser]
Thanks for responding. Here is the code that doesn't seem to be working:—

Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Blog extends CI_Controller {
    
    function Blog()
    {
      parent::Controller();
    }
  
  

function index()
{
  $data['title'] = "My Blog Title";
  $data['heading'] = "My Blog Heading";
  $data['todo'] = array('clean house', 'eat lunch', 'call Mom');
  
  $this->load->view('blog_view', $data);
  
}

}

?>

I tried putting CI_Controller as the parent, but this didn't work either. Any help much appreciated. BTW do you know of any more up to date tutorials I can learn from?

Kind regards

Simon Lovena


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