plus

Configuring Zend Framework to Work with a Local Development Environment: New Premium Tutorial

Download Source Files

In this video tutorial, and companion article, we will go over how to install and configure the Zend Framework to work with your local development environment. I will be using Wampserver 2.0i on a Windows Vista computer but these steps can be adapted to XAMPP, MAMP, or whatever stack of Apache, PHP, and MySQL that you’re using. Become a Premium member!

Join Tuts Premium

NETTUTS+ Screencasts and Bonus Tutorials

For those unfamiliar, the family of TUTS sites runs a premium membership service called “TUTSPLUS”. For $19 per month, you gain access to exclusive premium tutorials, screencasts, and freebies from Nettuts+, Psdtuts+, Aetuts+, Audiotuts+, and Vectortuts+! For the price of a pizza, you’ll learn from some of the best minds in the business. Become a Premium member!


Tags: Premium
Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • organicit

    I wonder if I am the only one not seeing anything in the screencast

    • Vadim

      No you aren’t , this is a plus tutorial, I would like to see it too :(

    • http://parenting.pl Marcin

      I hear the sound, but the screen just remains black. Some quality assurance, anyone?

      • http://www.tasarimda.net cagatay

        i have same problem …

      • http://codingpad.maryspad.com mary

        Sorry that it’s not working. Not sure what’s going on. I’ll let Jeffrey know. There may have been some file corruption issues when it was uploaded and it needs to be reuploaded.

        mary

  • http://sonergonul.com Soner Gönül

    Looks like great tutorial..!

    I will try it..!

    Thanks..!

    • http://codingpad.maryspad.com mary

      Thanks! I hope you find it useful!

  • Alexander

    The screencast ain’t working here, i get an error. But alright. I read the tutorial a little bit and i saw that you are using the zend library (Library/Zend/All the zen stuff).

    I use the zend framework for more projects, and really if i put the zend package in every library in every project, my computer will be full fast!

    My tip is, (on wamp) put the library with zend in C:/wamp/bin/library and then at in your php.ini the path to the library. So you don’t have to put it in every project every time.

    And updating the zend framework is now a way faster!!!

    Alexander de Jong

    • Vadim

      But what you will do when you deploy your site on a shared hosting, and you wouldn’t have access to php.ini ?

    • http://codingpad.maryspad.com mary

      Thanks for the comment Alexander. I actually talk about how to do it both ways, and what I see as the advantages and disadvantages of each method. If you have projects built over time you may not want the library in one central location since you may not be ready to update code from an old project to match a new version.

      However, you’re right. If I was building many projects on one version of the Zend Framework I would be inclined to place the library in one central location as I show in the screencast and then add the path to the php.ini file.

      Thanks again!

      • http://www.mauriciorivera.cl Mauricio Rivera

        I don’t know if it’s ok, but I just add the path to the index.php file, by modifying the array inside “set_include_path()”.

      • http://codingpad.maryspad.com mary

        Mauricio
        I think there are many ways to make this work, and the best way is the one that works for you, saves you time and makes your workflow seamless. In the screencast I go through just two ways to do it, but I am always interested in learning how other people set things up. :)

        mary

      • Alexander

        That is a point for you.

        I keep always the zend framework on one single location. And in my projects i also got a library folder.

        But for some projects it is smart. But i got 2 local servers, and in one server i got a central installation, and in the other i got in every project a single installation of the Zend Framework.

      • Alexander

        I finally had a change to look at the screencast.

        Now one thing that interest me real much is the thing about the environment variables, you said you need to restart your computer.

        That ain’t true, i’ve used windows xp, vista and now 7 and i always had a need to add environment variables, but never needed to restart my computer. It always works.

        Now if you are running the cmd.exe and you add a variable while it is still running you will need to restart the cmd, not the whole computer.

        Therest, a nice screencast! Thank you very much for sharing this with us.

        And one thing to add, if you want too upload the zend framework to an public server, make sure you have arround 20 cups off coffee. And something to do, it takes so much times to upload it to the web that you want to throw a way the internet :)

        Have a nice day!

        Alexander

    • http://codingpad.maryspad.com mary

      Thanks again Alexander. It’s very possible that I’m wrong about the restarting thing. I always find I restart Windows whenever I change path variables, not sure if it’s out of habit, but I’ve found I sometimes get odd behavior on good old Windows if I don’t. But you could very well be right about that.

      Yes, uploading the framework to the web can be painful… lol. I usually zip everything up for the upload but still, yes, it can make you want to throw away the internet :)

      mary

  • ShadowAssassin

    Again, I can’t stress the fact that still the free tutorials seen to be better then the premium ones (Not saying anything about this one)

    The free > The premium, which is not soo good, as no one will buy a premium

    Good tutorial!

    • http://codingpad.maryspad.com mary

      Thank you for the feedback!

    • Khalil

      @ShadowAssassin: Yeah I can agree with that. I purchased a year subscription but in general the free tutorials are noticeably better.

      Would be good to be able to download the premium screencasts too. Having to view it in a web browser isn’t always convenient.

      • http://codingpad.maryspad.com mary

        Khalil
        You can download the premium screencasts. When you’re on the tutsplus page and logged in, click on the “Go to PLUS Content” link. Then on the right sidebar, click on “Net Plus” and next to each premium tut you’ll see a download link for the screencasts :)

  • organicit

    looks like the screencast is working now. Thanks Mary!

    • http://codingpad.maryspad.com mary

      Good to know, thanks!

  • http://laranzjoe.blogspot.com lawrence77

    not a plus member :(

  • http://www.oimov.cn izon

    I don’t have dollars but CNY. If the gateway including alipay, then it would be great.

  • Bangline

    Just another method availble to you all is to use Zend Server CE over wamp. It ships with ZF out the box.

  • http://codingpad.maryspad.com mary

    Yes, Zend Server CE is a great option which I mentioned in the screencast. But many times people already have WAMP or MAMP set up and it doesn’t always make sense to have a second stack installed.

  • http://prodevstudio.com Azizur Rahman

    um… would I want to pay for something already available on-line in other places?

    • http://codingpad.maryspad.com mary

      Of course the information in the tutorial/screencast is probably available elsewhere, none of us claim to have invented something new. We’re simply teaching and showing what we know in our own unique way and style, with our own spin and from our experience, and you can choose to invest in that or not. It’s your choice.

      I’m always surprised when people make statements similar to the one you just made. When you join tutsplus you’re not just paying tp watch/read one tutorial, but for access to premium content across the entire tutsplus network of websites, which is priceless.

      Nonetheless, it’s entirely your prerogative :)

  • Michael

    Hi,

    I’m on Vista, running WampServer 2.0. I tried a tut before by Tawfek Daghistani but didn’t have much success.

    Could I use this tutorial to install ZendFramework successfully?

    If so, where do I sign up? :)

  • RomanTsjupa

    Great tutorial, one of those that actually works and doesn’t leave you facing some sort of error. But I found that Zend is a bit to cumbersome for the small projects I wanted to do. I browsed some more and found out that there are some much more lightweight frameworks like Slim (www.slimframework.com) and the recent PHPixie (http://phpixie.com).