肖恩D++
Not Equal C && !=C && 不等于西
-
Set up Zend framework 2 with NetBeans Running on XAMPP
Posted on April 2nd, 2014 12 commentsZend framework is an open source MVC framework implemented in PHP 5. Like other popular MVC frameworks (ASP.NET MVC, Java Spring MVC), Zend provides database abstraction, code skeleton, and more. Let’s see how to use it on NetBeans:
- Download necessary packages from Zend: Application Skeleton from here, and full framework from here. Also the composer package here (if you don’t have it on your system)
- Install php composer (if you haven’t installed), remember to select correct php.exe file under XAMPP
- Put skeleton and framework files into desired folder, unzip the framework file, but keep the skeleton zipped
- Open XAMPP’s httpd.conf file, add following lines at the bottom:
12#set zend 2 environmentSetEnv ZF2_PATH "D:/My Documents/PHP/ZendFramework-2.3.0/library" - Open NetBeans, navigate to Tools->Options->php->zend2, browser the skeleton zip file and apply
- Now we can create php project using zend framework, remember to select zend in the end of project creation wizard
- Zend will create skeleton code automatically for you
- Create virtual directory in XAMPP’s httpd.conf for php project, add following lines at the bottom:
12345678910#Alias for PHP project CarDealerAlias /cardealer "C:/Users/seant/Documents/NetBeansProjects/CarDealer/public"<Directory "C:/Users/seant/Documents/NetBeansProjects/CarDealer/public">Options Indexes FollowSymLinks Includes ExecCGIAllowOverride AllOrder allow,denyAllow from allRequire all granted</Directory> - Press F6 in NetBeans to run the project in browser
Leave a Reply
12 Comments on "Set up Zend framework 2 with NetBeans Running on XAMPP"
It Shows Me an Error:-
Fatal error: Class ‘ZendLoaderAutoloaderFactory’ not found in C:xampphtdocsPhpProject6init_autoloader.php on line 42
Do you have full framework installed? some people saying if you have 2 versions of zend installed, this kind of error will occur
THANKKKSS MAN, one week to discover what i will do for working with nb+zend
Awesome!
This is a great tutorial. I have browsed the internet for more than 10 days looking for a quickstart on Netbeans IDE 8+ and ZF2. All the materials I found online were based on earlier versions of netbeans or ZF1+.
When I came across this, I almost skipped it. Thank God I didn’t. I would have given up.
These steps worked for the netbeans IDE 8.0.2. Keep the good work up!
glad it helped! 🙂
What version of NetBeans is this?
Thanks in advance!
I am using 7.4 for this tutorial
Hi. I am using 8.0.2 netbean. I can’t install php composer. You can help me?
Thanks.
What error did you get? Can you specify in more detail for your issue?
Jsjdnd
Bsgsgsgsgs