mini3 icon indicating copy to clipboard operation
mini3 copied to clipboard

Fatal error: Uncaught Error: Class 'Mini\Model\PDO' not found in

Open juniorbatistadev opened this issue 6 years ago • 4 comments

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

juniorbatistadev avatar Jun 28 '18 06:06 juniorbatistadev

Hi, what happens when you NOT change it ?

panique avatar Jun 28 '18 12:06 panique

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

juniorbatistadev avatar Jun 28 '18 15:06 juniorbatistadev

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.

mhco avatar Sep 27 '18 17:09 mhco

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

uniqueanurag avatar Oct 21 '18 17:10 uniqueanurag