Yeah I am going through all my controllers right now to see if I can use the folder solution. Which way would be faster? Folders or modules?
On Sat, May 12, 2012 at 8:52 AM, Anthony <abasta...@gmail.com> wrote: > On Saturday, May 12, 2012 10:51:59 AM UTC-4, Bruce Wade wrote: >> >> I am starting to think the design loading everything in models with every >> request, all though makes for rapid development isn't a very good design. >> Maybe for common settings in witch case the folder shouldn't be called >> models. > > > Note, if you have some models that are needed only for particular > controllers or functions, you can execute them conditionally based on the > controller (and optionally the function) by using sub-folders, as described > here: http://web2py.com/books/default/chapter/29/4#Workflow. Otherwise, > you can put them in modules and import them. > > Anthony > -- -- Regards, Bruce Wade http://ca.linkedin.com/in/brucelwade http://www.wadecybertech.com http://www.fittraineronline.com - Fitness Personal Trainers Online http://www.warplydesigned.com