To access the data we need to specify the appropriate model class.
To know more about using models, read the Models article from the framework documentation.
"Model/event.php" file
<?php
class Event extends AppModel
{
var $name = 'Event';
var $primaryKey = 'event_id';
}