import in config/main.php doesn't work


I’ve created a subfolder (inside protected) called helpers. In there is a file called Utilities.php. To autoload this class I added this path to the configuration file main.php like







Now, when I try to use it I get an error:

Any suggestions why this is not working ?



UPDATE: the fact that no one replied is an indication of something stupid, I checked again and indeed, something stupid!

Did you used any additional code to include Utilities.php?

After you imported files from your helpers directory, all files are already included, you do not have to include them again.

But problem can be if you have some includes inside your files, so if one file include others, so maybe your relative paths are wrong.