Introduction to Zend 1.8: A look at Zend_Tool and Bootstrapping
May 29th, 2009Zendcasts has now moved to 1.8.2! This video covers setting up a Zend Framework perspective in Zend Studio for Eclipse as a well as using Zend_Tool to get a project structure up and running. The second half of the video covers setting up Zend_Layout and a typical Zend MVC structure. Source code is available on Google Code or downloadable here. Enjoy!

Good intro to zend_tool. For those just starting to play with this new feature of zend framework there are a few bugs yet to be worked out. Keep this in mind to minimize frustrations. In your demo you encounter one.
When trying to create an index controller inside your admin module you got an error message that a controller by that name already exists, referring to the default IndexController. It should be possible to create another controller of the same name inside a different module w/o conflicting with controllers with like names in different modules. A similar error is encountered when trying to create actions of the same name inside controllers of the same name.
see: http://framework.zend.com/issues/browse/ZF-6755
Keep up the good work with the video tutorials.
All the best,
Jim
Hi Jim,
you’re quite right! I was a little surprised when that happened, but I figured I would just keep moving along. I’m sure eventually they’ll have all the bugs sorted out of Zend_Tool.
Hi Jon – excellent videos!
How do I get this nice display of errors as shown in this video? I installed 1.8.2 but still get the whole stack trace in one line.
Regards from Germany – Zendy
Hi Zendy,
You need to make sure that the XDebug module is installed and working with PHP. This is a PHP thing, not a Zend thing. That way, you’ll get nice looking error messages.
Best!
Why do you start using eclipse in your tutorials instead of netbeans ?
Hi John.
Good job. but i have got a problem in windows setting up the zend framework. Is there any changes that i should make in php.ini, system variables or other configuration. Please provide the videos for windows environment as well. I am using WAMP server.
Thank you
Hi Fernando,
both products are good and I’ll probably be switching off from one product to another. Currently, I’m using ZSE professionally so my videos are going to use it as well.
Hi
How can i set the include path, i have a problem with my models after a migration from 1.7 to 1.8
thanks
Hi Fadel,
the default prefix for models in the models folder should be Model_
you should have to register any special include paths if you’re using Zend_Application and the new Bootstrap class.
@Harshi: I don’t use windows for development and my php.ini file is pretty standard (I can’t think of the last time I even opened it). I do the videos in the same environment that I develop for my clients. Unfortunately, setting up a Windows dev environment would be out of the scope of zendcasts or this video series.
Hi Jon.
Nice screencast as always. But I
think you have a little bug at the end. If you want to show meta info from Bootstrap file : $view->headMeta(), you also should add some code to layout.phtml
headMeta() ?>
.
must appear in head tags
And it would be nice to add some tool for showing php/html code in comments
Wow that’s great man . Really cool to learn for newbies .
.
The docs seems not telling much . May be in the future helpful for newbies .
You have done a nice job . Great work and carry on .
Hands of to you .
Bye!
Nice screencast. I am having problems with the notation you use in the layout.phtml file. Specifically, the <?= notation. My Zend Studio version gives me the standard <?php and does not recognize it, either.
No code Assist, either, like I see in your video.
Thanks,
CharlesH
the < ?= notation is considered a “short tag”, however its considered a good practice when dealing with PHP as a templating engine for brevity. You can always use < ?php echo instead, I just prefer the terse notation, and most web hosts have short_tags enabled in their php.ini file.
Is there a tutorial on how to setup Zend_Tool to work in a MacOS X + MAMP (or XAMPP) development environment?
The interaction between Terminal.app and MAMP’s instance of PHP is something that has me completely befuddled.
Thanks!!
one of the earliest videos on the site (it might be the first one) covers this
doctype(); ?>
This is my layout
layout()->content; ?>
The above text was what I got after creating the initial layout.phtml. Turns out that I had short_tags turned off in the php.ini configuration.
I’ve been following your blog for 4 days now and I should tell you I get tons benefits from your article. and now how I can get news update from your website?