Writing a bootstrap file

December 20th, 2008

Setting up a bootstrap.php file as part of a Zend Framework MVC structure. I also cover the preliminary steps in setting up a Zend Framework project in NetBeans.   This video is part 3 of a series of short videos going through the steps required to setup a Zend Framework project from scratch.

9 Responses to “Writing a bootstrap file”

  1. John says:

    Hi,

    Your tutorials are very good. Keep up the good work. I am trying to use netbeans IDE as well. I have a question here. How do you turn on the Auto-Completion for Zend classes & etc? I checked the tools->options, auto completion is on. but how do i link it to zend libraries?

  2. jon says:

    Hi John,
    Netbeans should be clever enough to find the classes as long as they’re all inside one netbeans project. Hope that helps.

  3. franck says:

    Put zend lib in the global path (tools->preference) or in the properties of a single projetc (right click-> properties

  4. jon says:

    Hi Franck,
    That’s a great point, however I prefer to keep the Zend distro with my application so that when I version my application, I don’t end up with a different version of the Zend Framework on production. Especially since the Zend Framework goes through point releases so quickly.

  5. franck says:

    And it really updates fast, I’ve reconsidered my way of doing this way ! But you can specify one path for each project individually. So netbeans can take care of zend this way. right click, property : add a folder for include path.

  6. mary says:

    I’m learning Zend now and just realized that there seems to be different ways to setting up a project. Some use the command line, but from this vid it looks like you set the folders and bootstrap file up manually. Does it matter which method one uses? I actually prefer the way you’re doing it because it seems more transparent.

    Second question, any conflicts with Zend 1.8 or 1.9 now that they’re both out, or will this approach work fine too?

    thanks for the great work!

  7. jon says:

    1.8 and 1.9 have introduced a new Zend_Application object which makes a lot of this code obsolete or redundant. Regardless, its based on the same premise so its good to know what’s going on. I would suggest looking at the 1.8 videos to see how to get a project started.

  8. mary says:

    Thanks Jon, I’ll definitely watch those.

  9. alan says:

    This version of JW is BAH.
    You stop or pause video it jumps to begin if you try to go select a place in video it jumps to start.

Leave a Reply

Desktop RSS feed iPhone + iPod