Tag: cannot modify header information

  • PHP: Zend Framework, MVC, Cookies and 4096 byte oddities

    A little word of warning which has puzzled me for over 3 hours in debugging… If you use Zend_Controller_Front::getInstance()->dispatch(); in your Zend Framework index.php file for firing off the MVC system, and the returned page is over 4096 bytes (4 kilobytes) in size you cannot set a cookie afterwards without causing the “fun” error “Cannot […]