Jan 2, 2009
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
Dec 27, 2008
Easy CakePHP deployment: Environment & Database Config
I just digged Rafael Bandeiras Environment class which is supposed to help handling multiple enviroments. It really is a nice piece of code and i don’t find it overkill either. After adding it to my app i thought how i could use my setups to change the database with ease. I then remembered reading an bakery article from Joel Moss on how one could use the object constructor in the DATABASE_CONFIG... read more

