I've come to use a structured directory of functions in the "helpers" directory to provide the functionality I need. I have a base modelglue application that I start from - one I've modified significantly from the sample - which includes these cfcs. I have all I need available to me from the start when begin working in my views since I can call - helpers.stringUtil.phoneFormat(blah) - without any extra cfincludes. It's quite elegant if I do say so myself. The longer you work with MG the more you will appreciate it's design. MG3, by the way, is a significant improvement over MG2. - Seth
On Sun, Sep 27, 2009 at 9:46 PM, Brettski <[email protected]> wrote: > > Hi Seth, > > Thanks for the reply. So I guess then how do you share this managed / > well-encapsulated code across multiple MG applications? > > With tags I have a common folder, do I do something similar with MG > Apps? > > On Sep 28, 2:14 pm, Seth MacPherson <[email protected]> wrote: > > While others may disagree, I would say you are welcome to continue using > > custom tags if have you feel you have a good library in place. There is > a > > danger in using custom tags, however; for many it becomes far too easy > for a > > custom tag to turn into a mini-application. Part of the beauty of MG is > > that it provides well defined boundaries for organizing your application. > > I've left custom tags behind completely in favor of smaller, easier to > > manage, well-encapsulated pieces of code. > > > > Happy coding, > > > > - Seth > > > > > > > > On Sun, Sep 27, 2009 at 6:29 PM, Brettski <[email protected]> wrote: > > > > > Hi, > > > > > I'm converting one of my apps to model-glue and have a question about > > > helpers. > > > > > My current app has about 100 custom tags, that I having been using for > > > ui stuff e.g > > > > > -buttons with options > > > -displaying headings > > > -encapsulating chunks of UI logic in order to clean up the ui layer > > > > > Should I keep these tags or should I really convert them to helpers? > > > > > Just looking for advise on best practice. > > > > > Many thanks, > > > > > b > > > > -- > > - Seth > > > -- - Seth --~--~---------~--~----~------------~-------~--~----~ Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" 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/model-glue?hl=en -~----------~----~----~----~------~----~------~--~---
