You need to put your verifyReserve method into your Reserve model, not
your controller. Also, I'm pretty sure your verifyReserve method would
always return true, as query() returns a resultset, not a single
field.
This is more cake-like...
class Reserve extends AppModel {
$name = 'Reserve'
If you are just starting out I recommend you start with cake 1.2
(generateList() is function of 1.1, so that's why I assume you are
using 1.1).
But more importantly I suggest you read the manual about data
validation and proper way to retrieve model data, as of now you are
doing a lot of things i
Hello everybody,
I've a problem... I'm starting to learn how to use CakePHP and I'm
trying to write a new Action in one of my Controllers. I need to
recuperate values sent by a View and validate them.
The idea is: The user makes a reserve to one Official in one Date and
Time. I've to verify if t