Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
それはバグですか、それとも仕様によるものですか?第二に、それは非論理的だと思われます...すでに初期化されているのに、なぜ再初期化するのですか?または私は間違っていますか?..
$this->_forward()メソッドは、内部 (3xx) リダイレクトのように機能します。新しいリクエストのような新しい環境を設定するためのものです。これは、モジュールを使用する場合に特に役立ちます。
$this->_forward()
同じコントローラー内の別のアクションに転送するには、 を使用する必要があります$this->dispatch('nextAction')。
$this->dispatch('nextAction')