I have an old php function in a .php files and want to include and call this from my controller. I copy my .php function file to myLib folder first and then defined my function in config file like this:
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
'application.myLib.*',
),
now how to call my function in controller??
I call it simple by name but I get this error:
Fatal error: Call to undefined function myFunction() in C:\xampp\htdocs\test\protected\controllers\TestController.php on line 10
myLibfolder located?