Tag: zend framework

  • PHP: Getting individual packages on Zend Framework

    @binarykitten (on Twitter) had the question I officially give up.. how the hell do you download only 1 component of the Zend Framework? I’ve been looking all over the site and I told her that I wasn’t aware of a method, that there were potential dependencies and to maybe try asking @calevans. He responded with […]

  • PHP: Zend Session: don’t set it up in the Initalizer

    I’ve just wasted a few hours trying to get Zend_Session (part of the PHP Zend Framework) working correctly – previously, on this codebase, I had “rolled my own” cookie and session management system, but I thought I’d do it properly and utilise the Zend_Session system and store it all in a database… It didn’t work. […]

  • PHP: Zend_Dojo_Form SubmitButton not showing

    In version 1.7.0 of the Zend Framework, specifically the Zend_Dojo_Form_Element_SubmitButton class (which makes the Zend_Form use the Dojo Javascript library), there is a small bug which prevents the label section of the Submit button being shown. To work around this, just add something like: $eElement->setDijitParam(‘label’,’Submit label’); to work around the issue. This is a known […]

  • PHP: Difference in Dates Using Zend_Date

    I’ve had to write some code recently that handles peoples ages based on their date of births… Something simple you expect, until you realise that PHP can’t really deal with years before 1970 (due to UNIX date time restrictions). Luckily Zend_Date (in the Zend Framework) comes to hand to help! But how do you actually […]

  • 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 […]