Welcome Guest, Not a member yet? Register   Sign In
Simple sub-directory pages
#6

Quote:It's not working when I am trying to access http://localhost/mysite/hosting/web-hosting.php

In CI, you don't refer to a php file, but to a controller and a method.

The correct url should be:
Code:
http://localhost/mysite/hosting/web-hosting

In this case, CI is looking for a controller called "hosting" and a method inside that controller called "web-hosting", unless you've setup routes to route the url to a different controller (and method).
Reply


Messages In This Thread
Simple sub-directory pages - by raydvard - 02-24-2017, 06:36 AM
RE: Simple sub-directory pages - by Wouter60 - 02-24-2017, 09:18 AM
RE: Simple sub-directory pages - by raydvard - 02-25-2017, 12:07 AM
RE: Simple sub-directory pages - by Wouter60 - 02-25-2017, 03:55 AM
RE: Simple sub-directory pages - by raydvard - 02-25-2017, 04:06 AM
RE: Simple sub-directory pages - by Wouter60 - 02-25-2017, 04:17 AM
RE: Simple sub-directory pages - by raydvard - 02-25-2017, 06:02 AM
RE: Simple sub-directory pages - by Wouter60 - 02-25-2017, 11:18 AM
RE: Simple sub-directory pages - by Diederik - 02-25-2017, 02:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB