Hi Daniel,

why don't you just use multiple controllers instead of submodules with
one index controller each?

Or do I miss something?

Greetz,
Sascha

Daniel Tangermann schrieb:
> unbelievable that noone ever needed a modularsystem with more than one
> subsection. Or is it just to easy that I do not see the solution?
> 
> 
> Daniel Tangermann schrieb:
>> I finally have a working modular system together with smarty and
>> maintemplates.
>> My file-structure is:
>>
>> /application
>>    /modules
>>       /foo1
>>          /controllers
>>           IndexController.php
>>       /foo2
>>          /controllers
>>           IndexController.php
>> /views
>>    /scripts
>>       /foo1
>>        footemplate1.tpl
>>       /foo2
>>        footemplate2.tpl
>>     maintemplate.tpl
>>
>> I know that in every module there should be a views folder for the
>> subtemplates, but this will not work for me together with the smarty +
>> maintemplate solution, but this is ok for me right now.
>> I set up the module-dir in the bootstrap with:
>> $controller->addModuleDirectory('./application/modules').
>>
>> Working fine for now, but what do I have to do to have some of the
>> modules having seperate modules like
>> /application
>>    /modules
>>       /submodule1
>>            /foo1
>>                /controllers
>>            /foo2
>>                /controllers
>>       /modulewithoutsubs
>>          /controllers
>>
>> Maybe you can give me a hint.
>> Daniel
>>
>>
> 

Reply via email to