Zend Framework 1.8, has been released!
To celebrate, I have completely revised and updated my Zend Framework tutorial to support the new Zend_Tool command line tool and Zend_Application for bootstrapping.

Let me know what you think :)
Zend Framework 1.8, has been released!
To celebrate, I have completely revised and updated my Zend Framework tutorial to support the new Zend_Tool command line tool and Zend_Application for bootstrapping.

Let me know what you think :)
The views expressed in these comments are not the views of the publisher. However, we believe in the rights of others to express their legitimate views and concerns. Any legitimate complaint emailed to rob@akrabat.com will be seriously considered and the post reviewed as desirable and necessary.
May 1st, 2009 at 05:41 #
Rob,
Your tutorial is very good for someone that starts working with ZF now. It's great to see that you continue the work and update it when something important happens with ZF.
PS: the link to the tutorial in the post is broken.
Regards,
Romeo
May 1st, 2009 at 06:07 #
Bad link
May 1st, 2009 at 06:11 #
Sweet :) hope this one makes more sense than the new getting started guide!
"Zend Framework tutorial" link typo though :)
May 1st, 2009 at 06:15 #
Christian,
Fixed the link :)
Regards,
Rob...
May 1st, 2009 at 10:13 #
Your guide has been very helpful. Thanks!
I think there's a small mistake with the Form_Album class, as you called it "Form_Album" throughout the text, but "Album_Form" in the example.
May 1st, 2009 at 18:14 #
Another thing: in the deleteAction, I think is missing a Zend_Form object to handle the delete submit.
May 1st, 2009 at 18:50 #
Luis,
The delete action doesn't use a Zend_Form object - it uses a form defined in the delete.phtml file.
Regards,
Rob...
May 2nd, 2009 at 08:08 #
Luis,
I've worked out what you mean now and have fixed the PDF to match the source code archive :)
Regards,
Rob...
May 2nd, 2009 at 13:49 #
Great job, there are just few informations on the web right now about how to use zend_application, so big thx for this
PS i bought your book, its the best zf book on the market!
May 2nd, 2009 at 18:55 #
Hello Rob,
Thank you for your nice tutorial.
I just followed your tutorial to 13th page, and I got the following error on my browser:
===
Warning: include(C:\host\localhost\application/models/DbTable//Albums.php) [function.include]: failed to open stream: No such file or directory in C:\host\library\Zend\Loader\Autoloader\Resource.php on line 173
Warning: include() [function.include]: Failed opening 'C:\host\localhost\application/models/DbTable//Albums.php' for inclusion (include_path='C:\host\localhost\application/../library;C:\host\localhost\library;C:\host\library;.;C:\php5\pear') in C:\host\library\Zend\Loader\Autoloader\Resource.php on line 173
Fatal error: Class 'Model_DbTable_Albums' not found in C:\host\localhost\application\controllers\IndexController.php on line 16
===
After the 11th page, the script was working fine. I'm using WampServer 2.0h on Windows XP SP2 locally.
How can I fix this?
Regards,
BEREGU
May 3rd, 2009 at 13:29 #
Oops,... I just didn't name the model directory to DbTable. That's why I got the error.
Thank you Rob.
May 4th, 2009 at 22:08 #
thx for updating your work
I find its a nice idea from Luis
Another thing: in the deleteAction, I think is missing a Zend_Form object to handle the delete submit.
Maybe you could also show this way and maybe a dojoform?
thx
daniel
May 4th, 2009 at 22:47 #
Hi Rob,
Thanks for the great tutorial, I'm dying to learn how to use Zend_Auth and Zend_Acl with this tut (ZF1.8) Actually, I tried to use the good old one (ZF1.early) and it does not work unfortunately...
Hope to hear from you!!
Sincerly,
Bassgun
May 6th, 2009 at 13:12 #
thanks for this it really helps to make the transition from 1.7 to 1.8
May 7th, 2009 at 07:40 #
well... at least I figured out Zend_Auth and Zend_Acl... so my previous post is not necessary anymore!! Anyway, keep up the good work
May 7th, 2009 at 16:20 #
I get error from Zend_Loader getting model's rowClasses. I named all my model with the new 1.8 naming convention Model_{modelname}, but I'm stuck with this problem, I always get
Warning
include({moduleName})
failed to open stream: No such file or directory in
C:\wamp\myproject\library\Zend\Loader.php
So, what is the naming convention for rowClasses? Should them be located inside models directory?
Thanks
May 7th, 2009 at 18:41 #
Razorblade,
This is a known issue. Make sure you require() the row class first.
Regards,
Rob...
May 7th, 2009 at 18:43 #
Hi Rob,
I've temporarily solved whit this solution:
http://www.nabble.com/ZF1.8-Naming-Convention-for-rowClass-Model-td23428187r0.html
Hope next version of ZF have this fixed.
Thank you
May 8th, 2009 at 11:34 #
Many thanks for this tutorial. One thing I think that would be most useful would be a practical guide to creating custom helpers or other classes under the /library folder and then showing how to get them to autoload. With many different bootstrap examples out there it would be nice to see your basic bootstrap from 1.8 with an autoloader that references a custom library.
thanks,
and keep up the good work!
May 16th, 2009 at 20:06 #
Hi! I have this some kind of problem which had the BEREGU but i don't know how to name to the model directory? Rob help me!
May 17th, 2009 at 18:37 #
Hi,
I followed this guid without problems.
Then I followed the part about the view resource over at http://framework.zend.com/wiki/display/ZFPROP/Zend_Application+-+Ben+Scholzen, but get this error: Uncaught exception 'Zend_Loader_PluginLoader_Exception' with message 'Plugin by name 'Dojo' was not found in the registry; used paths: Zend_View_Helper.
Can you make a tutorial about this, because yours are always clear as water! Many thanks
May 23rd, 2009 at 04:59 #
hi,
Many thanks for this tutorial. One problem I facing to run the project with the directory name in root without typing public, please help in setting up virtual host or other method to solve this problem.
May 26th, 2009 at 13:05 #
Hi,
Is it that hard to use the Zend_Tool? I followed all the instructions given in the tutorial but could still not run it. when i type zf show version i get a php.exe error and that puzzles me. i am using php5.2.9 apache 2.2.6 on a windows XP service pack 3.
Any help
May 26th, 2009 at 15:59 #
I think you must add php.exe as environment var. Start->Control Panel->System->advanced click on environment var button ( my translation could not be perfect, I don't have english winxp ).
On the bottom textarea find the 'path' variable. Add ';path-to-your-php.exe' at the end of the string. The semicolon at the begin is important as it is a separator.
Restart your system and try again work with zend tool
June 3rd, 2009 at 07:49 #
hai when i am put this line--
$session = new Zend_Session_Namespace('Zets');
in index.php(bootsrap) then i recive this error----
Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start() - C:\xampp\htdocs\api\library\Zend\Session.php(Line:438): Error #2 session_start() [function.session-start]: Node no longer exists Array C:\xampp\htdocs\api\library\Zend\Session.php(Line:442): Error #2 session_write_close() [function.session-write-close]: Node no longer exists Array' in C:\xampp\htdocs\api\library\Zend\Session.php:444 Stack trace: #0 C:\xampp\htdocs\api\library\Zend\Session\Namespace.php(124): Zend_Session::start(true) #1 C:\xampp\htdocs\api\index.php(75): Zend_Session_Namespace->__construct('Zets') #2 {main} thrown in C:\xampp\htdocs\api\library\Zend\Session.php on line 444
why please help me thanks.
June 12th, 2009 at 03:50 #
I got same error with BEREGU #10, and the models directory already have DbTable and Albums.php.
I fix it with editing library/Zend/Loader/Autoloader/Resource.php at line 173 autoload function, so the last snippet will be like this :
$path = $this->_components[$lastMatch];
$path = str_replace('APPLICATION_DATA', APPLICATION_DATA, $path);
return include $path . '/' . str_replace('_', '/', $final) . '.php';
HTH
July 2nd, 2009 at 21:12 #
hi im getting this problem and wont go
Fatal error: Class 'Model_DbTable_Albums' not found in J:\Websites\quickstart\application\controllers\IndexController.php on line 17
any help please!: D would love to get going with zend framework thanks Chris
July 17th, 2009 at 06:20 #
Recently I was switched to Zf 1.8
Problem with models, getting Fatal error: Class 'Model_DbTable_Users' not found in D:\workspace\afmis\application\controllers\MasterController.php on line 64
July 29th, 2009 at 07:31 #
Hi,
nice tutorial. I found a little typo in your vhost-config (page 3):
DocumentRoot /var/www/html/z-ftutorial/public
I assume you mean:
DocumentRoot /var/www/html/zf-tutorial/public
CaBi :)
October 7th, 2009 at 10:20 #
i stil getting error pls if there any idea........
Warning: Zend_Loader::include_once(Model\DbTable\Albums.php) [zend-loader.include-once]: failed to open stream: No such file or directory in C:\wamp\www\test\library\Zend\Loader.php on line 83
Warning: Zend_Loader::include_once() [function.include]: Failed opening 'Model\DbTable\Albums.php' for inclusion (include_path='.;C:\php5\pear;../library') in C:\wamp\www\test\library\Zend\Loader.php on line 83
Fatal error: Class 'Model_DbTable_Albums' not found in C:\wamp\www\test\application\controllers\IndexController.php on line 15
October 12th, 2009 at 09:36 #
Thanks! It's a great tutorial!
I'm excited of Zend_Application!
October 23rd, 2009 at 01:52 #
Hi,
Is there a solution to this? Where is it?
"Fatal error: Class 'Model_DbTable_Albums' not found in C:\xampp\htdocs\music-library\application\controllers\IndexController.php on line 17"
Please help. Thx.
October 26th, 2009 at 10:25 #
niggfreeces,
You probably don't have the _initAutoloader function in your Bootstrap class.
Check that first.
February 13th, 2010 at 12:34 #
Error is happeing because class name is wrong
Solution
Rename Model_DbTable_Albums to Application_Model_DbTable_Albums in controllers/IndexController.php
Hope this helps :)