No, you cannot organize controller files into subfolders. However, you can make controller functions that are simply routers to functions that you organize in modules (you can use URL args to determine the routing).
Anthony On Saturday, December 26, 2015 at 5:36:37 PM UTC-5, Alessio Varalta wrote: > > Hi, I have a problem with my logic....I want to know if is possibile to > have this structure > > different folders-with the files controller.py and in this case how the > url work? Usually the url is name of controller file+name of function but > in this case? > > Because for example i have the entity Coperative and i have differents > page that work with this entity ..so I want to have a folder. > Coperative-and inside this the controllers..For me this is a good logic. > > Now in this moment i have one page controller Coperative with 7 or 8 > functions that use module and class: > > 1)But i note that is not so good to have many functions in one page > 2)I want folder because create many files without folder not help the > organisation > > Is possibile?For example > > folder Coperative/controller.py ??????Works? > > I read that is not possibile to have subfolders? Is real??? Because i > think is better to have a check in subfolder that don't have the > maintainability of the application. Ok you put the logic in the module > but you have or 100 file controller without folder or you have little files > with 100 functions...This is a disaster for the logic..I hope that I can > use subfolders > > I have read old post and in these the advice is to use module...This is > not a solution because you don't have a logic structure of controllers..you > have or 1000 files or you have one files with 1000 function that use > models..This is not a good solution!! > If I use a framework for my work and for the money I can not use old > pratice that are not so far too php without framework solution that don't > go under a solid framework structure.Use module is not a solution! You have > a mess in a controller or you have mess in the directory > > Thanks in advance > > > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

