I've got multi module app. In main index.php
, i set route
from my ini file:
[index]
pattern = '/'
module = front
controller = index
[allmodules]
pattern = '/{module:moderator|admin}(.*)'
module = 1
Next is registring modules, where each module have own Module.php
where I've got reading of ini file with routing definitions for module. In phalcon 1.x and 2.x that solution worked, but in 3.x not.
Have you got some idea how make multi module app in 3.x with structure like? :
public/index.php
config/routing.ini
modules/admin/Module.php
modules/admin/config/routing.ini
modules/front/Module.php
modules/front/config/routing.ini
Thanks :)