Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Only the home page is showing?
#1

[eluser]DJMOHNL[/eluser]
Hey everyone,

Again i am in trouble, now i have created this:
Code:
<?php

class Home extends Controller {

    function Home()
    {
        parent::Controller();        
        
        $this->load->helper('text');
        
    }
    
    function index()
    {
        $this->load->view('templates/dj_header');
        $this->load->view('templates/dj_menu');
        $this->load->view('home/dj_home');
        $this->load->view('templates/dj_footer');
    }
    
    
}




/* End of file home.php */
/* Location: ./system/application/controllers/home.php */

as my homepage controller..
The problem is with the browserview of my website is that its started to only show my homepage..

If i type in http://mysite.com/profiel/upload it shows this in url bar:
"http://mysite.com/profiel/upload" and it goes to the same page as: http://mysite.com/
this happened after installing Curl Library i think, as thats the last thing i have installed recently...

There are 4 view files wich doesnt take any page variables, or functions that tell the browser to show this "home page" it must show my "profile/upload" page but it doesnt..

does someone know why ?
thanks!

EDIT -->>>>

Code:
// i missed/overlooked this:
// this is the mail controller that failed
// look at the $data
$this->load->view('templates/header');
$this->load->view('templates/direct', $data);
$this->load->view('templates/footer');


// on the home site it was:
$this->load->view('templates/header');
$this->load->view('templates/home');
$this->load->view('templates/footer');

// It seemed to be ok.
// but the site needed a additional variable somesite.com/home/varthatwasntthere
Inside a view file..
At first i cant understand why the whole site wasnt working

ANYWAY Thanks for viewing and i hope it could help another CI coder some time..




Theme © iAndrew 2016 - Forum software by © MyBB