A question for the CakePHP community:
I am attempting to upgrade a website built using CakePHP 1.3.11 to CakePHP 2.0.4. It is a very simple site with no database attached, I wish to use the PagesController / PageModel to validate the data passed to it from a Form and then send an E-Mail based on the information supplied.
The $useTable
variable in PageModel
has been set to false and the database.php
$default
is left as.. well, default (the reasoning being i dont need a database conneciton at anytime).
The problem comes in, when I try loading the view, i get:
Error: SQLSTATE[28000] [1045] Access denied for user 'user'@'localhost' (using password: YES) requires a database connection.
Why would it give me this when at no time do i want a call to any database? Worked fine in 1.3.11, am I missing something...? Hope I explained the dilemma adequately. Any input would be much appreciated.