Load the class in all requests or have another class acting as an
intermediate that would load the required classes when the event is
triggered
On Friday, November 21, 2014 11:29:15 PM UTC+1, gonzela2006 wrote:
Hi,
I created an event 'Model.User.created' and attached the listener to my
Hi,
I created an event 'Model.User.created' and attached the listener to my
model as you can see below and it is working well
App::uses('AppModel', 'Model');
App::uses('CakeEvent', 'Event');
class User extends AppModel {
public function afterSave($created, $options = array()) {