>> That returns a record, not one string, right? > > if you need a string, write a model method to return it:
except that function will NEVER work cause of a typo! try: function findFieldValue($field, $conditions=array()) { if (isset($field) && !empty($conditions)) { if ($record = $this->find('first', array('conditions'=>$conditions))) { return $record[$this->alias][$field]; } } } -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---