Class frontend\components\xyzWidget not found on hosting

Hello,

I have multiple Widgets placed under frontend\components and it’s working completely fine with Xampp in localhost when i call them like: frontend\components\AkcioWidget::widget(... but on the hosting this path is not found.

What i am missing? Shal i make some annotation somewhere in config because i use namespace frontend\components; in the components directory.

Thanks a lot in before if you can help!

Hi @boco10,

It looks like another example of case sensitivity problem between Windows and Linux. Please check the filenames of the widget classes.

For example, XyzWidget class must be stored in XyzWidget.php file in Linux, while xyzWidget.php may work in Windows environment.

Thanks a lot! The camelcase stuff was the problem.

Cheers!

1 Like