Monthly Archives: August 2008

CakePHP Code Snippet: Return only fields with values to the DB upon saving.

This code goes in {ModelName}::beforeSave: foreach ($this->data[$this->name] as $key => $value) { if (!set::classicExtract($this->data,$this->name . ‘.’ . $key)) { $this->data = set::remove($this->data,$this->name . ‘.’ . $key); } } I use it where the DB may be expecting values for certain … Continue reading

Posted in CakePHP | Leave a comment

Vista on Asus Z71V

The (Built on) Asus Z71V was released in 2005, so it’s not a Vista "certified" notebook. That aside, I replaced my "in need of a rebuild" XP Pro install with a fresh Vista install. Audio and Video drivers didn’t work … Continue reading

Posted in Personal | Leave a comment