Looks good. I think I would use Cake's magic before writing my own function like that, though. However, the function also accomplishes more than the initial target functionality.

AD7six wrote:

On Jun 18, 1:55 pm, Joshua Benner <[EMAIL PROTECTED]> wrote:
  
Consider using a 'Months' table for which you define a 'Month' model which has associations defined between it and 'Entry'
Then:
$this->Month->findAll(array('monthName'=>'January'))
    

Or not :).

http://bin.cakephp.org/saved/20574

hth,

AD




  

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to