Welcome Guest, Not a member yet? Register   Sign In
Not Found
#11

[eluser]Nuage[/eluser]
I did not have that problem in my previous project.. I dont know why it happens now Sad
#12

[eluser]TheFuzzy0ne[/eluser]
OK, what's your directory structure? I need to know where the system and application directories are in relation to your Web root.
#13

[eluser]Nuage[/eluser]
htdocs > ci > images, system, userguide

system > application
#14

[eluser]TheFuzzy0ne[/eluser]
Then your base url should look like this:
Code:
$config['base_url'] = 'http://localhost/ci/';

However, this won't fix your problem.

We need to know the name of your controller file, and the contents of it.

Also, we need to know the name of your view file, and the contents.

Assuming you're running windows, you can edit the hosts file (C:\windows\system32\drivers\etc\hosts), and add something like this:

[quote author="" date=""]
127.0.0.1 mysite
[/quote]

Then you should be able to use a URL like this:

http://mysite/ci/controller/method

You could make it mysite.com instead if you want. Basically, you should set it to whatever domain name you plan to use for your real site.

Assuming I owned the domain mysite.com, my hosts file would look like this:

[quote author="" date=""]
127.0.0.1 dev.mysite.com
[/quote]

requests to dev.mysite.com would go to the localhost, and requests to any other subdomain would go to my live site.

I'd then set my base_url as 'http://dev.mysite.com/'

Hope this helps.




Theme © iAndrew 2016 - Forum software by © MyBB