2010年6月16日星期三

Re: [fw-mvc] CUSTOM_Controller_Plugin is loaded twice

It *could* also be that there's really more than one page requested by your browser. It happened to us on several occasions where you link a javascript or css file that does not exists, which throws an exception instead and bootstrap the application twice. Same thing for a missing favicon.ico and actually same thing for the navigation helper that adds <link> stuff in the <head> of the page, like the following pages' names and such. In this last case, Firefox (for example) will silently precache the next pages making more requests per page (but you can't see it in anything but a network sniffer like wireshark).

Regards,
-- Nicolas Grevet


On 06/16/2010 09:34 AM, Jachim Coudenys wrote:

Hi,

 

You probably use some kind of forwarding in your controller.

That is why it's called twice.

 

MvG,

 

Jachim Coudenys

Web Developer - Guideline Belgium

 

Van: Enkhbilguun Erdenetsogt [mailto:enkhbilguun@beregu.com]
Verzonden: maandag 14 juni 2010 11:23
Aan: fw-general@lists.zend.com; fw-mvc@lists.zend.com
Onderwerp: [fw-mvc] CUSTOM_Controller_Plugin is loaded twice

 

Hello everyone,

 

I just found that CUSTOM_Controller_Plugin is loaded twice. I don't think it is normal.

 

I'm using ZF 1.10.5 and application.ini registers my Controller Plugins like resources.frontController.plugins.Testo = "MY_Controller_Plugin_Testo". I just var_dump("TESTING"); in Testo Controller Plugin and the message is displayed twice in my browser.

 

Do you know how to avoid such duplicated load?

 

 

 

---

Enkhbilguun Erdenetsogt

 
-- 
This email was Anti Virus scanned.

没有评论: