Welcome Guest, Not a member yet? Register   Sign In
cant get to work site_url in anchor
#1

[eluser]Edgars[/eluser]
Code:
class Welcome extends Controller {
function __construct()         {
            parent::Controller();
            $this->load->helper('url');
       }
    function Welcome()    {
        parent::Controller();    
    }
    
    function index()    {
        $this->load->view('welcome_message');
    }
    function content()    {
         echo "asdf";
    }
    
}
This is my controller - Welcome
Code:
<body>

<?php
echo anchor('/welcome/content', 'title="My News"');
?>

</body>
and my welcome_message.php
All is taken from codeigniter user_guide.
And
The requested URL /index.php/welcome/content was not found on this server.
this is what I get when I click on link. Why it ain't working?


Messages In This Thread
cant get to work site_url in anchor - by El Forum - 11-15-2010, 12:15 PM
cant get to work site_url in anchor - by El Forum - 11-15-2010, 01:34 PM
cant get to work site_url in anchor - by El Forum - 11-15-2010, 01:51 PM
cant get to work site_url in anchor - by El Forum - 11-15-2010, 02:13 PM
cant get to work site_url in anchor - by El Forum - 11-15-2010, 02:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB