You must call the subclass' getInstance() once, then any calls to
Zend_Controller_Front::getInstance() will return the subclass instead of
ZCF.

   -- Mon


On Sun, May 2, 2010 at 1:01 AM, Aurimas Likas <[email protected]> wrote:

> In the online documentation there are 
> written<http://framework.zend.com/manual/en/zend.controller.front.html>:
>
>
> Overriding the getInstance() method ensures that subsequent calls to
>> Zend_Controller_Front::getInstance() will return an instance of your new
>> subclass instead of a Zend_Controller_Front instance
>>
>
> But this is not true or I misunderstand here something? After extending
> Zend_Controller_Front I tried to:
> $instance = Zend_Controller_Front::getInstance();
> echo get_class($instance); // ouputs Zend_Controller_Front
>
>

Reply via email to