Как продлить Zend_Controller_Request_Http и сообщить программе о My_Controller_Request_Http ??Как я могу расширить Zend_Controller_Request_Http
Решение
Это, как я получил это работает следующие указатели GORDONS.
флиртует сохранить следующий файл в вашей библиотеке: My/Controller/Запрос/Http.php
<?php
class My_Controller_Request_Http extends Zend_Controller_Request_Http {
/* Add all your custom functions here */
}
В классе начальной загрузки я добавил следующее.
function _initApplication()
{
/* Doing some other stuff here */
$this->bootstrap('frontcontroller');
$front = $this->getResource('frontcontroller');
$front->setRequest('My_Controller_Request_Http');
/* Registering some plugins here, not relevant */
}
Thank's Gordon! – Phliplip