-- Tir <[EMAIL PROTECTED]> wrote (on Friday, 10 October 2008, 05:57 AM -0700): > Matthew Weier O'Phinney-3 wrote: > > Actually... we don't have a way in the Response object yet for setting > > cookies; if we had one, that would make testing easier. I've added a > > ticket for you to track this: > > > > http://framework.zend.com/issues/browse/ZF-4520 > > > It's really good idea: add in the response object methods to manipulate with > cookies. But how i can test my code, in which i use the setcookie function, > with the Zend_Test now? I mean test my code and don't receive the "Cannot > modify > header information - headers already sent by" error :)
Add a check for "if (!headers_sent())" before you call setcookie() for now. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/
