Yii doesn't find my file




    $path = Yii::import(Yii::getPathOfAlias('application.modules.file.components'));

                return Upload::getUploadPath();



If I copy $path into the console and do ls -a $path, the file "Upload.php" shows up correctly. "sudo chown dispy:www-data myproject -R" should solve everything related to permissions.

What’s messing it up here?

Thanks in advance!

EDIT: SOLVED: it must be .* at the end. Can somebody remove this topic? It will not help anybody but congest the forum ;)

Yii::import accepting alias, not path.

Yii::import(‘application.modules.file.components.Upload’);

Happy coding.