Welcome Guest, Not a member yet? Register   Sign In
First day, having trouble getting started.
#1

[eluser]evinrows[/eluser]
Edit: I just realized that http://localhost/nettuts/index.php/blog/index/ works. So I suppose I'd just be asking an annoyingly frequent question if I asked how to make it show up with the other URL. You can lock the thread.

I'm following the CI manual tutorial that tells me to make a file called blog.php with the contents

Code:
<?php
class Blog extends Controller {

    function index()
    {
        echo 'Hello World!';
    }
}
?>

and place it in

Code:
nettuts/system/application/controllers

But when I visit localhost/nettuts/blog/index I get

Code:
Not Found

The requested URL nettuts/blog/index was not found on this server.

I'm assuming it has something to do with routing? I running wamp server and I checked to see that it's running fine.

Any help? Thanks in advanced! :]


Edit: I just realized that http://localhost/nettuts/index.php/blog/index/ works. So I suppose I'd just be asking an annoyingly frequent question if I asked how to make it show up with the other URL. You can lock the thread.
#2

[eluser]Maglok[/eluser]
Yeah try localhost/nettuts/index.php/blog/index

index.php basically gets all of the pages from CI. If you want to get rid of it, there are bits in the user_guide to do that. It involves editing the .htaccess.
#3

[eluser]evinrows[/eluser]
Yeah I'm a little slow... Tongue I'm suprized to find a quick response at 6:50 AM though. Thanks. Smile
#4

[eluser]Maglok[/eluser]
It's 1:22 PM Tongue
#5

[eluser]Dam1an[/eluser]
[quote author="Maglok" date="1250094138"]It's 1:22 PM Tongue[/quote]

There's this thing called timezones Tongue
#6

[eluser]Andreas Bergström[/eluser]
Sidenote: If you want to get rid of the index.php in the URL, read here:
http://codeigniter.com/wiki/mod_rewrite/ (assuming you run on Apache)
#7

[eluser]evinrows[/eluser]
Thanks a bunch Andreas. And yeah I'm in eastern United States (gmt -5).




Theme © iAndrew 2016 - Forum software by © MyBB