Hi, I'm working on a project that stores a custom url for articles, so a story named "Big News at Soby's" becomes "big_news_at_sobys" automatically. I've put the method to handle the text conversion in the model as part of a BeforeSave function (based heavily on some code I found on Symfony's website). Now I'm realizing that the code is also going to have to query the model to figure out if the url generated is unique (and append a number to it if not).
My question is: since this is getting a bit involved, I'd like to use this method in a few other models, and I'm wondering if there's a better place to store methods than in the model's class itself. I read a bit about behaviours in 1.2- is this what they're intended for or should I be putting this in the vendor folder? Thanks, Zoltan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
