Welcome Guest, Not a member yet? Register   Sign In
Error Logging
#1

How do i get the page name along with the script name?

I got the following error.
Undefined variable: title views/head.php 7

But the title has been set in the controller.
So, I have no idea which file is causing the trouble.

Can you please tell me how to find which file is creating this problem?
Reply
#2

As a workaround, at the beginning of the file views/head.php add the following:

Code:
if (!isset($title))
{
    $title = NULL;
}

It would be convenient if only the written log (on non-CLI) contained the URLs of erroneous pages, but such a feature is not implemented. Such a feature could be added here: https://github.com/bcit-ci/CodeIgniter/b...g.php#L207
Reply




Theme © iAndrew 2016 - Forum software by © MyBB