php 我从哪里开始使用 Zend 框架?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/952056/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where do I start with Zend Framework?
提问by Chris Bier
I have been coding my PHP applications in Notepad. I want to take it a step up and do it professional, and as far as I can tell using the Zend Framework is where to start. I have been reading the documentation and quick start and a few tutorials but I am still completely lost.
我一直在记事本中编写我的 PHP 应用程序。我想更进一步,让它专业化,据我所知,使用 Zend Framework 是开始。我一直在阅读文档和快速入门以及一些教程,但我仍然完全迷失了。
- Is Zend on your local machine or on the remote server?
- Is the "MVC" model different files? A file for the GUI, A File for the Functions used to get data and the database?
- Is there a tutorial that REALLY goes into detail about how you can accomplish things with Zend Framework, and how to get started?
- Zend 是在您的本地机器上还是在远程服务器上?
- “MVC”模型是不同的文件吗?GUI 的文件,用于获取数据和数据库的函数的文件?
- 是否有真正详细介绍如何使用 Zend Framework 完成任务以及如何开始的教程?
The reason I am asking this is because the tutorials I have been reading still leave me confused and I am very anxious to start doing this professionally. I would like to utilize this new set of tools! Please help :)
我问这个的原因是因为我一直在阅读的教程仍然让我感到困惑,我非常渴望开始专业地做这件事。我想使用这套新工具!请帮忙 :)
采纳答案by Andy Baird
We've all been there before!
我们以前都去过那里!
Zend Framework is a pretty powerful MVC framework for PHP. There are scads of tutorials all over the net. The quickstart tutorial is good to get a general skeleton of an application, but I found Akrabat's Zend Framework tutorialto be a better real world example.
Zend Framework 是一个非常强大的 PHP MVC 框架。网络上到处都是教程。快速入门教程很好地获得了应用程序的一般框架,但我发现Akrabat 的 Zend 框架教程是一个更好的现实世界示例。
ZF is fantastic when you're at the point where you need to develop robust applications and need a whole suite of libraries to accompany this - ZF's library is huge and all the components play quite nicely with each other (although, you can rip them out individually and add them to any project). The downside to ZF is that because it is so flexible, there can be quite a bit of complexity in setting it up.
当您需要开发健壮的应用程序并且需要一整套库来与之配套时,ZF 非常棒 - ZF 的库非常庞大,而且所有组件都可以很好地相互配合(尽管您可以将它们撕掉单独并将它们添加到任何项目)。ZF 的缺点是,因为它非常灵活,所以设置起来可能相当复杂。
To be honest, if starting to get your feet wet with MVC applications, you might try something a little bit more straight forward. I find CodeIgniterto have a very short learning curve while maintaining the fundamentals of MVC design. CakePHPalso walks you through the steps quite deliberately.
老实说,如果您开始接触 MVC 应用程序,您可能会尝试一些更直接的方法。我发现CodeIgniter 的学习曲线非常短,同时保持了 MVC 设计的基础。CakePHP还非常谨慎地引导您完成这些步骤。
回答by karim79
The quickstart tutorial is a great way to begin, maybe read it again? There's also this one:
快速入门教程是一个很好的开始方式,也许再读一遍?还有这个:
http://www.cyberciti.biz/tips/zend-framework-php-tutorial.html
http://www.cyberciti.biz/tips/zend-framework-php-tutorial.html
From the above link:
从上面的链接:
This tutorial is intended to give a very basic introduction to using the Zend Framework to write a very basic database driven application.
本教程旨在对使用 Zend Framework 编写非常基本的数据库驱动应用程序进行非常基本的介绍。
And here's a list of ZF tutorials for beginners:
以下是针对初学者的 ZF 教程列表:
Introduction and database Tutorial:http://akrabat.com/zend-framework-tutorial/
介绍和数据库教程:http : //akrabat.com/zend-framework-tutorial/
Source Files here
源文件在这里
Authentication Tutorial:http://akrabat.com/zend-auth-tutorial/
认证教程:http : //akrabat.com/zend-auth-tutorial/
Source Files here
源文件在这里
Forms Tutorial:http://akrabat.com/zend-framework/simple-zend_form-example/
表单教程:http : //akrabat.com/zend-framework/simple-zend_form-example/
Source Files here
源文件在这里
File Upload Tutorial: http://akrabat.com/zend-framework/simple-zend_form-file-upload-example-revisited/
文件上传教程:http: //akrabat.com/zend-framework/simple-zend_form-file-upload-example-revisited/
Source Files here
源文件在这里
Layout Tutorial:http://akrabat.com/zend-framework/simple-zend_layout-example/
布局教程:http : //akrabat.com/zend-framework/simple-zend_layout-example/
Source Files here
源文件在这里
I would make sure they're not for much earlier versions of the ZF before diving in.
在深入研究之前,我会确保它们不适用于早期版本的 ZF。
回答by tawfekov
zendcasts.comis doing very good Zend Frameword casts. It's really a good place to start.
zendcasts.com在 Zend Frameword 转换方面做得非常好。这真的是一个很好的起点。
回答by Elzo Valugi
Start with the official webinars. Very easy to digest and a requirement for a beginner.
从官方网络研讨会开始。非常容易消化,是初学者的要求。
回答by anonymous coward
Professionally written PHP applications do notrequire a framework. Frameworks exist for people that have been doing some of the same repetitive tasks repetitivelyand desire to change their own workflow.
专业的书面PHP应用程序都没有要求的框架。框架已经在做一些相同的重复任务的人存在重复和渴望改变自己的工作流程。
You should start by researching the "MVC design pattern" in general (as it applies to many things outside of PHP) and get deeper into the concepts of Professional PHP before starting with such a large framework as Zend Framework.
在开始使用像 Zend Framework 这样的大型框架之前,您应该首先研究一般的“MVC 设计模式”(因为它适用于 PHP 之外的许多事物)并深入了解 Professional PHP 的概念。
Use a framework because you know you needto, and not for any other reason.
使用框架是因为您知道需要这样做,而不是出于任何其他原因。
回答by Mark Embling
This tutorial is definitely worth a look, as it walks you through the creation of a fully-functioning web application using ZF 1.8 (at time of writing). The author also updates it each time new versions of the ZF are released.
本教程绝对值得一看,因为它会引导您使用 ZF 1.8(在撰写本文时)创建功能齐全的 Web 应用程序。每次发布 ZF 的新版本时,作者也会更新它。
回答by Javier
- Is Zend on your local machine or on the remote server?
- Zend 是在您的本地机器上还是在远程服务器上?
Zend is PHP code, therefore it runs on the webserver.
Zend 是 PHP 代码,因此它运行在网络服务器上。

