Technology Powered Knowledge Base
Click Here To Make FREE Audio & Video Call From Web Browser!

Install and Working with Zend Framework on Windows Platform

VN:F [1.9.22_1171]
Rating: +31 (from 31 votes)
VN:F [1.9.22_1171]
Rating: 9.7/10 (32 votes cast)

Create Skeleton Application:
 
1) We need mod_rewrite, php-curl and open_ssl module to be install on current PHP development environment (if PHP environment is XAMPP on Windows then open c:\xampp\apache\conf\httpd.conf and uncomment “LoadModule rewrite_module modules/mod_rewrite.so” again open c:\xampp\php\php.ini and uncomment and uncomment extension=php_curl.dll & extension=php_openssl.dll).
 
2) Open command prompt and navigate to PHP directory (if PHP environment is XAMPP on Windows then it will be: c:\xampp\php). Type command php -r “eval(‘?>’.file_get_contents(‘https://getcomposer.org/installer’));” and run it, you will see composer successfully installed message.
Read more at http://getcomposer.org/
 
3) Now install Zend Framework and dependencies with command php composer.phar create-project –repository-url=”http://packages.zendframework.com” zendframework/skeleton-application path/to/install/framework (if PHP environment is XAMPP on Windows then use c:/xampp/htdocs/zendframework instead of path/to/install/framework).
For more information read at http://framework.zend.com/manual/2.0/
 
Composer will install a skeleton zend application and then it will install zend framework.
 
Now navigate to http://localhost/zendframework/public/ and we can see sample home page of the application.
 
Change Application URL:
 
We already seen that our sample application run under a /public/ directory and we may don’t need this directory. To remove the directory or change the default URL of our sample application, just copy public directory under zendframework, and paste it under htdocs folder (or where ever you want). Rename it as per our project (as example helloworld).
 
Open index.php under the helloworld folder and comment out “chdir(dirname(__DIR__));” and add chdir(“../zendapp”); just after the commented line.
 
Now navigate to http://localhost/helloworld/ and we can see the same application running on our new URL.

Install and Working with Zend Framework on Windows Platform, 9.7 out of 10 based on 32 ratings



Sign Up     Sign In