Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] modules配下のControllerを読み込み可能にする #9

Closed
wants to merge 3 commits into from

Conversation

sun3bow
Copy link
Collaborator

@sun3bow sun3bow commented Nov 20, 2020

Yiiにはmodules/配下にControllerを配置してmodule単体のアプリケーションとして動かすことができます。
名前空間化モジュール

下記のようにDiiもこのControllerの名前を生成する処理はありますが、後続でこのController名で解決する処理が抜けているため、現状ではmodules/配下のControllerクラスをインスタンス化することができないので、修正しました。

$className = $owner->controllerNamespace . '\\' . str_replace('/', '\\', $controllerID) . $className; DiiWebApplication.php#L56

@sun3bow sun3bow closed this Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant