Zend Framework




Jo has written some ZF notes:


A blank white screen

Always echo out the get_include_path() to ensure you are including the Zend Framework library

URL not found

If get URL not found check .htaccess in /public/

Differences between 1.7 and 1.9

*Notice*: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in */Applications/MAMP/bin/php5/lib/php/ZendFramework-1.9.2/library/Zend/Loader.php* on line *207*

Apparent session error

Uncaught exception 'Zend_Session_Exception' with message 'Session must be started before any output has been sent to the browser; output started in /Users/adrianbirch/OLM/application/olm_application_env.php/54
This is caused because there has been some warning/error output to the screen before the HTML.   Solving the source problem will make this disappear. 


Set DB adapter:

$dbAdapter->query('SET NAMES UTF8');

after you declare $dbAdapter. 


Location of Zend framework could be in:

/usr/share/php/Zend/library/Zend/  # Ubuntu
/Applications/MAMP/bin/php5/lib/php/Zend/library/Zend # iMac

In local application (e.g. for Places project):

Link locally to local project:
adrian@ablinx0:/usr/share/php$ sudo ln \-s ./ZendFramework-1.8.4/ ./Zend

adrian@ablinx0:~/Places/library$ ls \-l
total 4
drwxr-xr-x 5 adrian adrian 4096 2009-07-30 09:15 Places
lrwxrwxrwx 1 adrian adrian   33 2009-07-30 09:41 Zend \-> /usr/share/php/Zend/library/Zend/
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License