Nasıl Zend_Controller_Request_Http uzatmak ve uygulama My_Controller_Request_Http bildirmek musunuz?
Solution
Bu i Gordons işaretçileri aşağıdaki çalışma var nasıl olduğunu.
My / Controller / İstek / Http.php: Firts aşağıdaki dosyayı kütüphane kaydedin
<?php
class My_Controller_Request_Http extends Zend_Controller_Request_Http {
/* Add all your custom functions here */
}
Önyükleme sınıfında i aşağıdaki ekledi.
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 */
}