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