Alias naar Zend Framework Command Line Tool aanmaken
alias zf=/Applications/MAMP/ZendFramework/bin/zf.sh
Nieuw Zend Framework project aanmaken
cd /Applications/MAMP/htdocs/localhost/ zf create project quickstart
Nieuwe Virtual Host aanmaken via MAMP PRO
Nieuwe Virtual Host aanmaken (handmatig)
Ga naar File -> Edit Template -> Apache httpd.conf :
Local name resolutionServerName quickstart.local DocumentRoot "/Applications/MAMP/htdocs/localhost/quickstart/public"
sudo nano /etc/hosts
127.0.0.1 quickstart.local
Path naar Zend Framework library instellen
Ga naar File -> Edit Template -> PHP5 php.ini :
;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; ;;;;;;;;;;;;;;;;;;;;;;;;;Alternatief; UNIX: "/path1:/path2"
include_path = ".:/Applications/MAMP/bin/php5/lib/php:/Applications/MAMP/ZendFramework/library"
ln -s /Applications/MAMP/ZendFramework/library/Zend /Applications/MAMP/htdocs/localhost/quickstart/library
Resultaat
Categorieën
PHP