Skip to content

Dispatch to another module in a multi-module app #121

Closed
@adrlil

Description

I tried to modify the file apps/library/Acl.php in my test HMVC app base on https://github.com/phalcon/mvc/tree/master/multiple, changed the dispatcher code as followed:

$dispatcher->forward(
    [
        'module'     => 'backend',
        'controller' => 'user',
        'action'     => 'login'
    ]
);

Thus want to dispatch to backend/user/login as module/controller/action in some conditions.
It doesn't work, just dispatch to the same module where the responding controller is. Any solution? Or should it be a new feature?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions