It is not a limitation because it does not limit the functionality. It 
constraints the way you code. The way we see it, it is a feature, not a 
bug. ;-)

Massimo


On Sunday, 27 December 2015 03:38:03 UTC-6, Alessio Varalta wrote:
>
> Ok it's seem to me a big limitation of the framework. You have to use a 
> structure with one level folder and controller, this is present for example 
> in Rails. The problem that I have read is the check but I think that also 
> in the big project the level is one folder-controller not alway but usually 
> so you is possibile to introduce a default check that if not found the file 
> in the url file-controller search in folder-file-controller and I think is 
> better that don't have the possibility to manage big project
>
> On Sunday, 27 December 2015 01:10:15 UTC+1, Anthony wrote:
>>
>> 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.

Reply via email to