Home » Php » php – how can I define a class in core directory in codeIgniter without using prefix

php – how can I define a class in core directory in codeIgniter without using prefix

Posted by: admin February 25, 2020 Leave a comment

Questions:

I have searched in the internet and I found this code
enter image description here,
I copy it and paste it at the end of config.php file which is located in config folder in codeIgniter, but in my MacBook Pro it doesn’t work , I use this code in in a windows pc and it worked , I want to know how can I define a class in core directory in codeIgniter without using prefix in my own MacBook Pro.

thanks for helping.

How to&Answers: