search
top

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

Probably watching too many RoR demos lately

Not sure why, but this ActiveRecord thing appealed to me and so i wrote a short behavior (nothing to release, really..) that kinda emulates RoR a little more… However, i think this is something for the bin. Or does anyone see a need or benefit of something like this: $this->User->find('first'); pr ($this->User->record); // has the full record $this->User->record->username =... read more
top