Not Equal C && !=C && 不等于西
RSS icon Email icon Home icon
  • Set up Zend framework 2 with NetBeans Running on XAMPP

    Posted on April 2nd, 2014 Sean 10 comments

        Zend 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:

    1. 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)
    2. Install php composer (if you haven’t installed), remember to select correct php.exe file under XAMPP
    3. Put skeleton and framework files into desired folder, unzip the framework file, but keep the skeleton zipped

    4. Open XAMPP’s httpd.conf file, add following lines at the bottom:
    5. Open NetBeans, navigate to Tools->Options->php->zend2, browser the skeleton zip file and apply
    6. Now we can create php project using zend framework, remember to select zend in the end of project creation wizard
    7. Zend will create skeleton code automatically for you
    8. Create virtual directory in XAMPP’s httpd.conf for php project, add following lines at the bottom:
    9. Press F6 in NetBeans to run the project in browser
    PHP
    1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
    Loading...Loading...
    3,054 views

    Leave a Reply

    10 Comments on "Set up Zend framework 2 with NetBeans Running on XAMPP"


    Guest
    Ajit Mhatre
    02/15/2016

    It Shows Me an Error:-


    Fatal error: Class ‘ZendLoaderAutoloaderFactory’ not found in C:xampphtdocsPhpProject6init_autoloader.php on line 42


    Author
    04/01/2016

    Do you have full framework installed? some people saying if you have 2 versions of zend installed, this kind of error will occur


    Guest
    Link
    08/26/2015

    THANKKKSS MAN, one week to discover what i will do for working with nb+zend


    Guest
    Prakash Kumar
    02/21/2015

    Awesome!


    Guest
    Abubakar Shuaibu
    02/03/2015

    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!


    Author
    02/07/2015

    glad it helped! :)


    Guest
    Felipe
    09/11/2014

    What version of NetBeans is this?


    Thanks in advance!


    Author
    09/13/2014

    I am using 7.4 for this tutorial


    Guest
    Nguyen Thang
    05/06/2015

    Hi. I am using 8.0.2 netbean. I can’t install php composer. You can help me?

    Thanks.


    Author
    05/15/2015

    What error did you get? Can you specify in more detail for your issue?