Hi All,

I have been working with the framework from the following tutorial http://www.phpro.org/tutorials/Model-View-Controller-MVC.html

Im struggling to get it to connect to a database using the pdo method.

Can anybody advise as to how I can get the database connection up and running?

Im not a newbie by a long shot, but it definitly an old dog trying to pick up a new trick.

Ive assumed that as its MVC the connection is 'global', but im not even getting any errors, even though the errors are switched on.

thanks

paul

Forget MVC ... I went thought the tutorial you provided and it is rather good for beginners in MVC (MVC has many architectural approaches). What is really the problem … have you used PDO outside MVC and inside it is a problem? If you want a PDO example this could be easy…

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.