search
top

More on possible Events in CakePHP

As a follow up to: Events in CakePHP – I really like it Let’s say you have unkown entities in your project – totally dynamic. Let it be a plugin, another model, not associated at all. Getting new functionality into an existing app can be a pain. Events do help alot in this case, depending on how you layed out the triggers. Events notify all possible candidates (”can u... read more

How to use THIS in THAT and then some

Some common questions on IRC: How to use a model in a component $model = ClassRegistry::init('ModelName'); $result = $model->find('...'); How to extend a core helper App::import('Helper', 'Text'); class AppTextHelper extends TextHelper { // ... your code } How to extend a core component App::import('Component', 'Auth'); class AppAuthComponent extends AuthComponent { // ... your code } How to get... read more
top