THANK YOU SO MUCH COLIN AND EVERYONE THAT HELPED OUT. I looked into the issue
it was exactly what Colin anticipated. My bootstrap was running two response
dispatches. Hence the problem. I must have inserted this while i was still
learning about the framework.

[code]
                                $response = self::$front->dispatch(); //
first call
                                self::sendResponse($response);
                                self::$front->dispatch(); // second call
[/code]

It makes sense now. Thanks a mil Colin!!



Colin Guthrie-6 wrote:
> 
> 'Twas brillig, and dele454 at 20/02/09 07:34 did gyre and gimble:
>> Hi,
>> 
>> I have this issue that's been lingering in my codes. Whenever i use the
>> Zend_Mail or Zend_Captcha or any component that generates some kind of
>> resource, i always get such resource twice. In context, if  i use the
>> Zend_Mail to send out mails - will recieve the same copy of that mail
>> twice.
>> 
>> Likewise for captcha, the image will be generate twice and saved in my
>> captcha image location - though with two different texts on them.
>> 
>> I have tried all sorts to recitfy this but to no avail. Any reason why
>> this
>> is so?
> 
> I'm guessing that your dispatch loop is running twice for some reason... 
> either that or you are handling it in the pre/postDispatch methods of a 
> controller that you actually initialise twice (e.g. by running an action 
> of that controller via an actionStack()).
> 
> I'd imagine something like that is happening. You can easily test this 
> by copying the Dispatcher class and sprinkling it with log calls.
> 
> Col
> 
> -- 
> 
> Colin Guthrie
> gmane(at)colin.guthr.ie
> http://colin.guthr.ie/
> 
> Day Job:
>    Tribalogic Limited [http://www.tribalogic.net/]
> Open Source:
>    Mandriva Linux Contributor [http://www.mandriva.com/]
>    PulseAudio Hacker [http://www.pulseaudio.org/]
>    Trac Hacker [http://trac.edgewall.org/]
> 
> 
> 


-----
dee
-- 
View this message in context: 
http://www.nabble.com/Quick-Question-tp22116080p22147624.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to