How to setup Zend Framework.
1) download ZendFramework-1.12.0 or latest framework from zend site.
2) extract it and paste the entire directory in anywhere in your system. in my case
i have copied it in my "C:\wamp\www" folder e.g. "C:\wamp\www\ZendFramework-1.12.0"
3) set envirenment path as "C:\wamp\www\ZendFramework-1.12.0\bin" and also
set path of your PHP installation directory of php.exe file e.g. "C:\wamp\bin\php\php5.4.3"
4) open dos prompt window and execute listed below command:
zf create project <projectName>
e.g. zf create project zfproj
5) copy "Zend" directory from "C:\wamp\www\ZendFramework-1.12.0\library\" into
your new project's library folder e.g. "C:\wamp\www\zfproj\library"
6) now start your wamp or any other php server and open this url in your browser
http://localhost:90/zfproj/public/
where "zfproj" is the newly created zend project and "public" is the initial home directory.
now you can get the page with
"Welcome to the Zend Framework!
This is your project's main page
Helpful Links:
Zend Framework Website | Zend Framework Manual"
Access Root Folder Of Zend Framework
Now if you don't want to use "public" folder as initial folder then follow listed below steps:
1) copy ".htaccess" and " "index.php" files from "C:\wamp\www\zfproj\public" folder into
root folder e.g. "C:\wamp\www\zfproj" folder.
2) open "C:\wamp\www\zfproj\index.php" file.
make comment this line:
//defined('APPLICATION_PATH') || define('APPLICATION_PATH',realpath(dirname(__FILE__).'/../application'));
copy paste this listed below code:
defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/application'));
now open this url "http://localhost:90/zfproj/" in your web browser.
now you will get the index page without "public" folder.
1) download ZendFramework-1.12.0 or latest framework from zend site.
2) extract it and paste the entire directory in anywhere in your system. in my case
i have copied it in my "C:\wamp\www" folder e.g. "C:\wamp\www\ZendFramework-1.12.0"
3) set envirenment path as "C:\wamp\www\ZendFramework-1.12.0\bin" and also
set path of your PHP installation directory of php.exe file e.g. "C:\wamp\bin\php\php5.4.3"
4) open dos prompt window and execute listed below command:
zf create project <projectName>
e.g. zf create project zfproj
5) copy "Zend" directory from "C:\wamp\www\ZendFramework-1.12.0\library\" into
your new project's library folder e.g. "C:\wamp\www\zfproj\library"
6) now start your wamp or any other php server and open this url in your browser
http://localhost:90/zfproj/public/
where "zfproj" is the newly created zend project and "public" is the initial home directory.
now you can get the page with
"Welcome to the Zend Framework!
This is your project's main page
Helpful Links:
Zend Framework Website | Zend Framework Manual"
index with public folder |
Access Root Folder Of Zend Framework
Now if you don't want to use "public" folder as initial folder then follow listed below steps:
1) copy ".htaccess" and " "index.php" files from "C:\wamp\www\zfproj\public" folder into
root folder e.g. "C:\wamp\www\zfproj" folder.
2) open "C:\wamp\www\zfproj\index.php" file.
make comment this line:
//defined('APPLICATION_PATH') || define('APPLICATION_PATH',realpath(dirname(__FILE__).'/../application'));
copy paste this listed below code:
defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/application'));
now open this url "http://localhost:90/zfproj/" in your web browser.
now you will get the index page without "public" folder.
index without public folder |
No comments:
Post a Comment