Welcome Guest, Not a member yet? Register   Sign In
ERROR: adding CSS in codeigniter


A PHP Error was encountered

Severity: Notice

Message: Use of undefined constant css - assumed 'css'

in config file:

$config['css'] = "mystyles.css";

showing this error...

can anyone please help me to sort out this...

thanks in advance

This error message makes sense if you forgot quotes around array index.
$config[css] = "mystyles.css";

Are you sure this is the right file / right line that throws the error?

code is correct...

i checked it...

Sure, but the error message you pasted here does not show file name or line number. The only way this error would be displayed is if quotes around array index are missing - but your configuration file line seems to be correct. That's why I suggested it could be either different file or different line in the code.

If anything I would suggest changing double quotes around file name to single quotes, just better practice and that way PHP will not try to repace substrings in the code ( "$varname gets replaced" ).


i will do that and check it again.

Theme © iAndrew 2016 - Forum software by © MyBB