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->getRequest();
$this->getRequest();
ビューヘルパーに似たものはありますか?
使用できます
Zend_Controller_Front::getInstance()->getRequest()
フロントコントローラーを取得し、ビュー内のコントローラーからリクエストを取得します。
ただし、コントローラーを使用してリクエストを受け取り、正しいデータをビューに渡す必要があります。ビューは要求から独立しており、コントローラーを介して分離されている必要があります。これを行うと、基本的にZendFrameworkのMVC実装が壊れます。