I can do:
'import'=>array( 'application.models.*', ),
so that i can instanziate any class in any files in the models directory without "requiring" anything thanks to the php/yii autoloading facility. This is ok but why now i added a "libraries/phpMailer" dir to my "protected" dir and adding it with the same method:
'import'=>array( 'application.models.*', 'application.libraries.phpMailer.*', ),
it doesn't work as expected?
If i instanziate the phpmailer class it raises an exception. Instead i have also to do " require_once('class.phpmailer.php');" in my controller action before i instanziate the class. Why?