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
Post a Comment