Welcome Guest, Not a member yet? Register   Sign In
Viewing my pages in a browser
#1

[eluser]Unknown[/eluser]
I am creating controllers to create my pages, that call on different views. I do not however know what the proper url is to view the page in my browser. The only page that I do not get a 404 error on is the page that I set as default in my routes.php file.

For example, on my local host my site is alf. My default controller is home. I can view this in the browser by putting in localhost/alf/ and my home.php controller file renders my page in the browser. I have another controller called user_profile. When I try to view this in a browser, I am not able. It is as if I am using the wrong url. If I change the user_profile to the default controller I can view it. I am sure it is something simple that I am missing. This is my first time using CI. Any help would be greatly appreciated.

I have looked at the CI uri/url help documents. Still not working for me.
#2

[eluser]InsiteFX[/eluser]
If you do not setup routes then you need to access them like below.
Code:
http://localhost/alf/index.php/page_name




Theme © iAndrew 2016 - Forum software by © MyBB