Thanks Colin, I am going to be looking into this over the weekend. And let you know the outcome on your suggestions.
Thanks a mil. Will keep you posted. 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-tp22116080p22118173.html Sent from the Zend Framework mailing list archive at Nabble.com.