php - Model not found even with 'use' -


i'm using slim framework , i'm facing issue. declare model of module :

 use \autofoldering\models\autofolderingmodel; 

and after use function :

$stmt = autofolderingmodel::select([     'select'    => [$distinct ? 'distinct ' . $data: $data],     'table'     => [$table],     'where'     => [$where],     'order_by'  => [$orderby], ]); 

and here issue have when try execute :

 uncaught error: class 'autofoldering\models\autofolderingmodel' not found 

fyi, use phpstorm , didn't have error, class charged.

thanks

did try run :

composer dump-autoload


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -