Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difficulties when learning Zend Framework 1.8

I am a newbie of Zend Framework.

I downloaded the Zend Framework and then followed the official quickstart tutorial to build a very simple registration form. But after that, I find very hard to learn different elements of Zend Framework.

Many tutorials mention frontController and registerAutoload() in the bootstrap file. However, it seems that I can't see it again in the code in version 1.8 (both in the official quickstart tutorial and Getting Started with Zend Framework 1.8). Many tutorials contain the old version of code and it seems very different in v1.8.

I start with writing registration form with password confirmation. I read the official document and find the custom validator for password confirmation. It just puts the class there and doesn't mention how I can use it. I don't know where I should put this file and I can't find any hints in Google. The "class not found" error always makes me sick (I've tried addPrefixElement, set_include_path but they don't work).

User registration, email activation, login, access control are very common tasks. But I don't even find a piece of sample code in v1.8 that I can run in my machine. I am very frustrated about Zend Framework.

Does anyone give me some advices?

like image 955
Billy Avatar asked Jun 19 '09 02:06

Billy


People also ask

Is Zend Framework Good?

The Zend framework is the perfect choice for developers needing an ideal platform for enterprise application developments. It lets them make the best of PHP5 and PHP7.

What is Zend framework used for?

Zend Framework is a collection of professional PHP packages with more than 570 million installations. It can be used to develop web applications and services using PHP 5.6+, and provides 100% object-oriented code using a broad spectrum of language features.

Is Zend Framework an MVC?

Zend\Mvc is a brand new MVC implementation designed from the ground up for Zend Framework 2, focusing on performance and flexibility. The MVC layer is built on top of the following components: Zend\ServiceManager - Zend Framework provides a set of default service definitions set up at Zend\Mvc\Service.


1 Answers

I have also just started learning the zend framework. I also find alot of old tutorials that make learning confusing and hard, but there are some resources that I find help in learning the zend framework:

  • http://www.zendcasts.com/ - they have tutorials on ZF1.8 already, like Bootstrapping using Zend_Application, etc.

Some useful blogs that might help:

  • http://weierophinney.net/matthew/
  • http://www.thomasweidner.com/flatpress/index.php
  • http://smartycode.com/zf/
  • http://codeutopia.net/blog/

Forums to ask your questions:

  • http://www.nabble.com/Zend-Framework-Community-f16154.html - alot of ZF developers seem to be here to answer your questions :) much more than the official Zend Forums below ...
  • http://forums.zend.com/viewforum.php?f=69

As to class not found, I think you didn't autoload?

  • http://framework.zend.com/manual/en/zend.loader.autoloader-resource.html
like image 113
iceangel89 Avatar answered Nov 02 '22 23:11

iceangel89