Search
Topics
Archives
- July 2010 (3)
- June 2010 (1)
- April 2010 (1)
- November 2009 (1)
- July 2009 (1)
- April 2009 (2)
- October 2008 (3)
- August 2008 (2)
- May 2008 (1)
- February 2008 (1)
- October 2007 (2)
- August 2007 (2)
- July 2007 (2)
- May 2007 (1)
- April 2007 (3)
- March 2007 (2)
- December 2006 (3)
- November 2006 (4)
- October 2006 (3)
- July 2006 (3)
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