i trying setup cakephp 3 several apps sharing same cakephp core. i'm trying achieve having file structure 'src' 'app1', src-ish folder 'app2' etc @ same level in file structure, sharing core.
the apps publications (with different layouts): verification toolkit, analysis toolkit, search gui, admin-page , tool classification. @ login, user redirected different controllers depending on username. apps share dependencies, , username/organisation etc stored in session-variables available across apps.
the solution i've come far naming files app1testcontroller, app2testcontroller etc.
anyone knows how set up?
cakephp 3 comes namespaces, possible have multiple apps , reuse vendor directory engine.
to load multiple apps, need configure config/bootstap.php, config/paths.php , config/app.php namespace , directory of app.
i have done on https://github.com/vttn/app
Comments
Post a Comment