I need include files in a cycle and get methods from that files. I know about Yii:: import function but she doesn't work correctly in my case. I have trying several times did that:
require_once Yii::app()->basePath . "/modules/$module->url_name/controllers/$file";
But this code gives me only "internal server error". If instead variables I put real name of module and name of the file - all works fine. Where is a problem?