Welcome Guest, Not a member yet? Register   Sign In
Having a problem with $this->load->view();
#2

[eluser]Sarfaraz Momin[/eluser]
Hi, it seems a very small mistake you made in the code. Check the code below.
Code:
<?php
class Home extends Controller{
    function Home(){
        parent::Controller();
    }
    function index(){
        $data['title'] = "Livefootballtalk - Home";
        $data['intro'] = "Livefootballtalk is a soccer/football fan community where fans from all different countries and clubs can meet and discuss about world football competitions and players. Also, the fans may interact through their profile pages and messager. We invite you to be a real fan and <a href='register.php?step=1'>join</a> the community!";    
        
        
        $this->load->view('home', $data);
    }
}
?&gt;

You have the constructor name different than your class name which I have reversed. It should work now !!!

Have a good day !!!


Messages In This Thread
Having a problem with $this->load->view(); - by El Forum - 09-01-2008, 02:09 PM
Having a problem with $this->load->view(); - by El Forum - 09-01-2008, 02:47 PM
Having a problem with $this->load->view(); - by El Forum - 09-01-2008, 03:39 PM
Having a problem with $this->load->view(); - by El Forum - 09-01-2008, 04:35 PM
Having a problem with $this->load->view(); - by El Forum - 09-01-2008, 04:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB