Apr 13, 2009
Adding “empty” to list-find, for the lazy
Currently i use the scaffold views alot to bake a simple admin interface. What annoyed me was that ‘empty’ is not set on select inputs. I could of course go through all add/edit views and add it, but i thought i rather modify the result to include a empty entry. Always add a “empty” entry to the result function find($conditions = null, $fields = array(), $order = null, $recursive =... read more
Mar 14, 2009
Model::save blacklist – in reply to teknoid
It’s not that i did not know what else to post, but here’s a more general approach for those who like using blackList over whiteList when tighten up save() calls. This post is ment as follow up to the one teknoid posted. Instead of doing the array_diff stuff in your controller, you could do it in the model (respectively, all models). So here it goes. I made the $blackList part optional, but... read more

