I'm using Yii2-basic-app
for now. I'm facing difficultly in calling class object in params.php.
I wanted to assign few params variable through database table's. And, I called using
params.php
$modelQueue = new \app\modules\queue\models\Queues();
$params = [
.
.
.
];
But, error coming
Fatal error: Class 'app\modules\queue\models\Queues' not found in /opt/lampp/htdocs/MyProject/config/params.php on line 13
Directory Structure
-assets
-commands
-components
-config
-db.php
-params.php
-controllers
-models
-modules
-queue
-controllers
-models
-Queues.php
-views
Queue.php
-runtime
I'm not getting how to call that class object. Because with help of this only I will set some data to params variable. Any help/hint/suggestions is appreciable.