Tag Archives: cakephp

CakePHP once again: scripts_for_layout from Element

I thought this was worth mentioning:

* using inline=false from an element will probably not work :) since…’this’!

So, echo $javascritpt->link(‘file.js’) FTW! :)

CakePHP: trouble updating record after overriding beforeSave

After defining the function beforeSave in one of my models, I could not get it to update table records anymore. No matter what I did, any call to save function would only create a new record.

CakePHP: how to selectively update record fields without blanking or changing others

When updating a database record, you might not want to update every field. CakePHP has a “not so cool” behaviour when updating records, which might lead to password changing even when user has not updated its password in the form.

CakePHP and Auth Component Password Hashing

Some tips about CakePHP and the Auth component. How to use password validation in the model, overriding the default hashing function.

Page optimized by WP Minify WordPress Plugin

Miscellaneous is Digg proof thanks to caching by WP Super Cache