Zend Framework Tutorial for ZF 1.10
Zend Framework 1.10, was released a week or so ago.
As a result, I have updated my Zend Framework tutorial so that it is completely current. The main change I made was to remove the _init methods in the Bootstrap as they are no longer needed. I also take advantage of the new features of the zf tool to enable layouts and create forms. It's a shame that it gets the class name of the form wrong though!




February 11th, 2010 at 01:58 #
Rob, your tutorial is excellent. I'm learning PHP from scratch, and your tutorial was the first that I'd done from start to finish.
February 11th, 2010 at 07:41 #
Thanks for the tutorial!
February 16th, 2010 at 08:32 #
Thanks for the great tutorial. I'm having a problem with the model section in the beginning, where you add Application_Model_DbTable_Albums in application/models/DbTable then use it in the controller.
Warning: include_once(Application\Model\DbTable\Provider.php) [function.include-once]: failed to open stream: No such file or directory in C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Loader.php on line 146
It looks like it is expecting the file to be in Application\Model\DbTable\ ?
In the end I resolved the problem by adding:
require_once '../application/models/DbTable/Provider.php';
in the controller, but would be interested to know how I can avoid having to do this each time.
Thanks :)
February 18th, 2010 at 09:55 #
hi,
thank you for pulishing a grate tutorials for beginers like us. i just started to learn zend and i'm using windows xp.
i set up all the tutorial and they're working nicely, but it couldn't connect to my database.it's mysql and i tryed to connect scrab db and user table.but when model try to get data it shows "An error occurred" and "Application error".
please help me to solve this.
thank you.
Dinesh
February 20th, 2010 at 15:07 #
http://mi-linux.wlv.ac.uk/~0810588/zend4/public/index/add
http://mi-linux.wlv.ac.uk/~0810588/zend4/public/index/edit/id/7
hi i keep getting these two error messages can anyone help me please
February 26th, 2010 at 15:11 #
Thanks for the excellent tutorial. Am new to zend framework and php and I have tried to view zf_tutorial project but am having the following error..
Fatal error: Class 'Application_Model_DbTable_Albums' not found in F:\xampp\htdocs\leadone\application\controllers\IndexController.php on line 15
please assist.
Regards
February 26th, 2010 at 23:41 #
Why _init are not necessary anymore?
March 2nd, 2010 at 17:41 #
Hi,
I am new to zend framework. I tired to set the zend tool. But it gave me an error.
php.exe is not recognized as an internal or external command.
My os is windows xp.
I am using wamp server `i`.
In the enviroment variable there was a another variable set which is working fine. But the zend tool is not. plz help if u can.
March 9th, 2010 at 08:35 #
@Shah Mubashir
This error message was a pain in the neck, but I found great tutorial about Zend Tool.
Please check this link:
http://www.armando.ws/2009/05/how-to-set-up-zend_tool-on-windows/comment-page-1/
March 22nd, 2010 at 18:58 #
@ William , @FWaweru : please add appnamespace = "Application"
in part [production] in file config , it's will be work fine!
Good luck.
March 22nd, 2010 at 20:28 #
nguyenloi85,
the zf command line tool in 1.10 should be putting that into application.ini when a project is created using zf create project, surely?
Regards,
Rob...
April 9th, 2010 at 04:23 #
Thanks for your tutorial, it's really help me to begin zf 1.10.. This far far away better than documentation on ZF website.. ^^
is there another zf tutorial after this? I really hope there is.
Thanks.
June 5th, 2010 at 11:28 #
Although I've done as instructed in terms of files set-up and added the ;C:\Program Files\ZendFrameworkCli\bin to the environment variable, when I try to issue zf commands at the windows command prompt, I get the message :
'"php.exe" is not recognised as an internal or external command, operable program or batch file.
I don't understand where the problem lies - any suggestions ?
June 5th, 2010 at 11:30 #
Adi,
You need to put the folder where php.exe is stored into your PATH environment variable too.
Regards,
Rob...
June 5th, 2010 at 11:38 #
ow,,nice,,thanks Rob,,it's running :D
June 8th, 2010 at 14:30 #
After I update the IndexController and update the index.phtml file, I go to the site url and I get a completely blank page, even the source is blank. Up to that point, I had been seeing all the pages as shown in the demo. Any ideas?
June 13th, 2010 at 13:30 #
Nevermind, I had some backwards parens in the controller (duh).
July 5th, 2010 at 09:54 #
thank you rob tutorial work fine
July 24th, 2010 at 18:05 #
I am still getting this error:
even after I did what nguyenloi85 suggested.
What is the problem?
Ken.
August 2nd, 2010 at 05:43 #
@Ken
Look in the folder C:\Program Files\BitNami WAMPStack\apache2\htdocs\zend\zf-tutorial\application\controllers\models\DbTables\Albums.php file exists.
if it exists then see the declaration of the class. It should have to be like
Application_Model_DbTable_Albums extends Zend_XXX
if its not like the above declaration then make it like the above declaration.
In zend framework a file is located like this foldername_foldername_foldername_filename without extension.
As it is suggested above Application_Model_DbTable_Albums
Regards,
Shah Mubashir