hi wiredesignz,
thank you for hmvc library. it is really great, but i need your assistance. i have a structure like this:
application/modules/institutions/controllers/admin/*
application/modules/institutions/controllers/member/*
application/modules/organizations/controllers/admin/*
application/modules/organizations/controllers/member/*
application/modules/users/controllers/admin/*
application/modules/users/controllers/member/*
module users wants to display some content of institutions and organizations. so:
echo Module::run(‘institutions/admin/institutions/get_view’);
echo Module::run(‘organizations/admin/organizations/get_view’);
and everything will be fine. but if you have the same controller name in different modules it won’t.
echo Module::run(‘institutions/admin/institutions/get_view’);
echo Module::run(‘organizations/admin/institutions/get_view’);
it will display the content of first initiated - in this case institutions. but if you make a hack like this:
echo Module::run(‘institutions/admin/institutions/get_view’);
echo Module::run(‘organizations/admin/somenameanythingyouwant/get_view’);
it will work like supposed to. the problem is with Modules.php file LINE 85:
$alias = strtolower(basename($module));
alias is defined by last “dir” entry. i think the problem would exist even if i don’t have such a complex structure, because once loaded controller’s class name will always stay in registry even if it comes from a different module.
can you suggest me a workaround please? i will have duplicate controller names in a structure… thank you very much.