$this->Somemodel->create();
if (!$this->Somemodel->save($data)) {
$errors = array_map(create_function('$key, $value', 'return $key.":".$value;'), array_keys($this->Somemodel->validationErrors), array_values($this->Somemodel->validationErrors));
echo ' - FAILED (rule: ' . implode(',', $errors) . ')';
}
My passion has always been on software development, and I know it since I
wrote my first program on an Apple II. I worked on cellular wireless system
in the past (C/C++) and now focus on web application
(LAMP, PHP, MySQL, CakePHP, Symfony, jQuery, Google AppEngine/python).
![[Valid XHTML 1.0 Strict]](https://edmondhui.ddns.net/blog/skins/admun3/valid-xhtml.png)