Welcome Guest, Not a member yet? Register   Sign In
Problems with going to other controller/function pages: Page not Found
#1

[eluser]ConnorD[/eluser]
This may be another very easy or obvious question about CI, but for some reason when I anchor from my home controller to another controller with another function, it can't find the page. Any suggestions?

Thank you
#2

[eluser]Pascal Kriete[/eluser]
You'll need to be quite a bit more specific.

Does the url of the other controller work normally?
Did you set your base_url in config/config.php?
Are you using a htaccess file or other means to alter or remove the url?
#3

[eluser]ConnorD[/eluser]
The answers to those questions are: no, yes, no. I have not done anything to the configuration but the standard/required base_url, autoload, etc.

I will post the code of the controller if you are interested:

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!";    
        // Getting some query data
        $this->db->order_by('id', 'DESC');
        $this->db->limit(2);
        $data['threads_query'] = $this->db->get('threads');
        
        $this->load->view('home', $data);
    }
    
    function view_members(){
        echo "testing...";
    }
}
?&gt;

What I was trying to do was to anchor from the home function to the view_members function.




Theme © iAndrew 2016 - Forum software by © MyBB