You could still have the isRed() function in your model. class Apple extends AppModel {
function isRed($color = null){ if($color == 'red'){ return true; } return false; } } So If you're working in your controller: $apple = $this->Apple->read(null, $id); if($this->Apple->isRed($apple['Apple']['color'])) { // logic... } else { // other logic... } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---