Hi everyone, I tried to use the widget for maintaine the language in application as explained in http://www.yiiframew…doc/cookbook/26
I created the files as explained, then I call the widget from a view (i try from layouts/main.php but also from other views) with this instruction:
<?php $this->widget('application.components.Langbox'); ?>
but I have always this error message:
Fatal error: Class 'Langbox' not found in …\Yii\yii\framework\web\CBaseController.php on line 138
I saw that the file name (components/LangBox.php) is written different from class name (Langbox) so I tried to rename it (components/Langbox.php) but the problem persist. I'm not sure if I'm calling the widget in the right way
anyone was able to use it or could help me
thanks