Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
juniorbatistadev opened this issue Jun 28, 2018 · 4 comments
Open

Comments

@juniorbatistadev
Copy link

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

@panique
Copy link
Owner

panique commented Jun 28, 2018

Hi, what happens when you NOT change it ?

@juniorbatistadev
Copy link
Author

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
Copy link

mhco commented Sep 27, 2018

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.

@uniqueanurag
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants