Welcome Guest, Not a member yet? Register   Sign In
404 page not found doesn't identify what is missing
#1

[eluser]Unknown[/eluser]
I am new to CodeIgniter, but not PHP.

I think I have things set up correctly:

application/models/register_module.php
application/controllers/register.php
application/views/auth/register.php

When I try to access URL/register, I get a page 404 error. The log records

ERROR - 2013-02-25 10:53:40 --> 404 Page Not Found -->

How do I get the requested URL recorded in the log file?

I know I might have something messed up somewhere, but right now I would really like more data in the application log file.

Thanks!
#2

[eluser]rana[/eluser]
you didn't mention which url you are testing with. However, to log something, better to do it in base controller. If you are not using, start using a base controller. In it's constructor, use condeigniter's log_info() function to write the requested url. so, you will be able to check it originally which url are being requested. Hope this help.
#3

[eluser]Unknown[/eluser]
yes - I am using URL/index.php/register as the URL to access.

Since I assume you mean index.php is the base controller, is that where log_info goes? I looked at index.php, but not sure where I would put such a call.




Theme © iAndrew 2016 - Forum software by © MyBB