You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fatal error: Uncaught Error: Class 'Mini\Model\PDO' not found in #45
When I use $query->fetchAll(PDO::FETCH_ASSOC) it show this error Fatal error: Uncaught Error: Class 'Mini\Model\PDO' not found ... thats the only thing i changed in the framework
everything was fine when I didn't change anything. any way in the comments of the song model say I can set the default to PDO:FETCH_ASSOC in core/controller but that file doesn't exist, I ended up finding the settings in core/model
You may need to change the use PDO to use \PDO in one or more places, just FYI. Not sure exactly why that's happening, but I get it on some of my sites, too.
Activity
panique commentedon Jun 28, 2018
Hi, what happens when you NOT change it ?
juniorbatistadev commentedon Jun 28, 2018
everything was fine when I didn't change anything. any way in the comments of the song model say I can set the default to PDO:FETCH_ASSOC in core/controller but that file doesn't exist, I ended up finding the settings in core/model
mhco commentedon Sep 27, 2018
You may need to change the
use PDOtouse \PDOin one or more places, just FYI. Not sure exactly why that's happening, but I get it on some of my sites, too.uniqueanurag commentedon Oct 21, 2018
After the above change even i'm getting error
Fatal error: Class 'admin\Model\PDO' not found in E:\php\admin\application\Model\admin.php on line 28