Welcome Guest, Not a member yet? Register   Sign In
Routing issue from welcome message
#1

[eluser]William Rouse[/eluser]
And today’s problem is…
“My application can’t find a controller.”
I modified the welcome view so it now has a menu with a series of links. I am running in netbeans and I can launch the application and the welcome view comes up modified.
The welcome page, “welcome_message” calls a header file where the links are like this.
Code:
<?php $this->load->view('inc/header') ?>
So, from this header file located in “views/inc“ I want to call a controller named posts located in the controller directory. I thought the link should look like this:
Code:
<a href="/posts/">Posts</a> or <a href="posts/">Posts</a>

The only significant routing change I made was in the config.php:
Code:
$config['base_url'] = "http://localhost/CodeIgniter/CIpagination/";
Lastly when the welcome_message comes up in the browser the address bar has what I accept.
Code:
http://localhost/CodeIgniter/CIpagination/index.php
And when I click on the link to go to post I see this in the header and get the not found URL message.
Code:
http://localhost/posts/
PS I read the routing section in the user guide.


Messages In This Thread
Routing issue from welcome message - by El Forum - 11-23-2009, 02:03 AM
Routing issue from welcome message - by El Forum - 11-23-2009, 02:23 AM
Routing issue from welcome message - by El Forum - 11-23-2009, 08:07 AM
Routing issue from welcome message - by El Forum - 11-23-2009, 08:26 AM
Routing issue from welcome message - by El Forum - 11-23-2009, 09:26 AM
Routing issue from welcome message - by El Forum - 11-23-2009, 07:10 PM
Routing issue from welcome message - by El Forum - 11-23-2009, 07:24 PM
Routing issue from welcome message - by El Forum - 11-23-2009, 07:58 PM
Routing issue from welcome message - by El Forum - 11-23-2009, 08:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB