Home > Backend Development > PHP Tutorial > Introduction to Zend Framework various libraries_PHP tutorial

Introduction to Zend Framework various libraries_PHP tutorial

WBOY
Release: 2016-07-13 10:33:40
Original
976 people have browsed it

In fact, what zend does is package all the knowledge of a super professional PHPer into a package for everyone to use. Of course, this PHPer habit may not meet your needs, just get the content you need.

After reading all of these, you can pick out some of the source code and make your own zend framework application, or a zend framework that specializes in MVC.

  1. Zend_Acl
  2. Access control list implements role permission model for resources. It's just a concept. The permission method I'm using is basically the same as acl. Acl has nothing innovative in terms of permissions. And you need to write more code to extend acl. It's better to write it yourself.

  3. Zend_Auth
  4. Verification, only responsible for verification. Legend has it that it has HTTP authentication and supports openID. It's just a legend to me... Verification is to compare yes or no, and then operate accordingly.

  5. Zend_Cache
  6. Cache. This is more useful. At least it teaches us the simplest caching method, a pair of if else, with cache, read cache, and without cache, read data inventory cache. zend_cache has three major features, which are three advantages that allow you to use zend_cache without using other caches. 1. Identify the uniqueness of the cache record. You can save yourself the trouble. 2 life cycle, you can save the money and do it yourself. 3 Conditional execution... In fact, the most worthwhile thing to learn about zend_cache is that it separates the front end and the back end. These two are responsible for different things. The back end is responsible for storage, the front end is responsible for parameters, etc. Regarding caching, it basically exists in the system, program, server, and even smarty...

  7. Zend_Config
  8. The legendary operation configuration, the operation of this configuration is already supported in PHP, and it is done well. The best thing about Config is that it can read xml format... In fact, what can be read and what format of xml configuration is specified by zend. I looked at their most commonly used DB configurations. That structure is no ordinary configuration file. More layers. More rules. Maybe it will be clearer.

  9. Zend_Console_Getopt
  10. Helps command line programs parse their options and arguments. This sentence was copied. It really has nothing to do with actual development. Has anyone used it? I heard that you can explain this sentence (rm * -fr), but what do you do after explaining it??? Explain what it does???

  11. Zend_Controller
  12. This is one of the most critical parts, one of the core contents of zend, one of the parts that makes PHPER feel that zend is usable the most, and one of the php products across the ages. There is too much content. It should be noted that NowaMagicController::blogmmmyyyAction() in the URL is like bkjia/blog-mmm-yyy, or in the middle. separated. So it is recommended to write it like this: NowaMagicController::blogmmmyyyAction(). Of course, there are many, many, many places that need attention. zend has a lot of specifications.

  13. Zend_Currency
  14. This is about dealing with money issues, that is, using different currency formats according to different regions. $1000 or ¥1000.

  15. Zend_Date
  16. The typical Western date solution is about the operation of date data.

  17. Zend_DB
  18. It is necessary for most projects. Since zend is used to develop the project, it is necessary to take a look at how the classes provided by zend_db are better than ours. Zend_DB uses pdo, so be sure to turn on this extension...it's a waste of time. After Controller, zend is the second most frequently used class. Including various database operation packages, even select has special usage methods. No need to write complete sql statements anymore? Not good. Anyway, I only used a small part of it. Includes connections. Query. Special insert, update, and delete operations.

  19. Zend_Debug
  20. This is for debugging, simple debugging. Equivalent to echo $some; of course it will output more detailed information.

  21. Zend_Exception
  22. Exception handling, exceptions during the use of Zend. If you are interested in testing DB, you can play around with it yourself.

  23. Zend_Feed
  24. As for Web applications, the most important things to look at in the feed are RSS and Atom. I feel that Atom is more modern, at least it looks better than RSS.

  25. Zend_Filter
  26. All kinds of messy filters. Check it out when needed. Maybe you will find that PHP functions are more convenient to use than this thing. Just maybe.

  27. Zend_Form
  28. This thing seems to be prepared for standard programmers. The so-called standard programmers do not consider the interface at all. Of course, a standard programmer is definitely not a good web programmer. No web programmer doesn't understand HTML. hehe. This doesn't mean much to me, and I don't know about others. Used to generate an html form.

  29. Zend_Gdata
  30. Gdata is the abbreviation of Google Data, which is of course Google's stuff, but does not include the famous gmail, search, and map. This is just the google data API. If you are interested in Google's API, you can research it. I am not a GOOGLE fan...nor a Baidu fan.

  31. Zend_Http
  32. This part is my current main research direction of php. Of course zend has done a lot of meaningful things. zend_http is very similar to PHP's curl. It doesn't feel as powerful as curl. However, the operation of curl is a bit opaque. When you use it, you don't know how to get it right. This thing still needs improvement. For example, you can develop a class for detecting http based on this thing. hehe. I prefer it.

  33. Zend_InfoCard
  34. Legendary personal identity authentication information. It's just legendary and has very few applications.

  35. Zend_Json
  36. JavaScript Object Notation, this thing is responsible for the operation of json. It is actually encoding and decoding... If you are interested in json, study it. I have no interest...

  37. Zend_Layout
  38. A view-related thing that implements a secondary view. I am more accustomed to using zend controller or shtml to solve this problem. The methods are different.

  39. Zend_Loader
  40. Dynamic loading is of course compared with static include. Can be loaded as needed. Of course this is a vague concept, but it does save a lot of work. Very nice code. Efficiency? Haha.

  41. Zend_Locale
  42. Internationalization? Localization? Just think of it as internationalization. Who wants to know what Ma Yongzhan translates into Italian? Anyway, I don’t need it.

  43. Zend_Log
  44. Universal log records. It is very similar to the log in the operating system and also very similar to the log in apache. It's a bit like the log I wrote... The two best concepts in Zend_log are: 1. grading error level, notice level, etc., zend is divided into 8 levels, 2. saving log, zend can put the log into output, database, and file. Of course, the most commonly used one is to output to a file. zend_log gave me a lot of inspiration. Used to improve my MyZ_log. Very useful stuff.

  45. Zend_Mail
  46. Currently I am using an smtpMail class written in PHP... Of course, zend is also written in PHP... If you happen to use mail, or feel that the original mail function is not good enough, I suggest you take a look at zend_mail.

  47. Zend_Measure
  48. For conversion, the simplest example is to convert feet to meters. For a small temple like ours...it's not of use...

  49. Zend_Memory
  50. Memory management, eh. This is not a small thing. Program-level memory management. I don’t know...low-level programmers may care about this program-level memory management.

  51. Zend_Mime
  52. Mime is mostly used for mail functions, of course you can also use it yourself.

  53. Zend_OpenID
  54. OpenID. It is a very popular thing, and its purpose is to integrate all accounts in the world, but the reality is that every manufacturer is not willing to be integrated. They all think about how to integrate others. So this thing is not developing very well.

  55. Zend_Pdf
  56. Pdf is a file format from Adobe, which is the most commonly used format for e-books. Zend is advertised as supporting PDF operations. Is it necessary to promote this thing? Is it the main function of Zend? It's too much to make a fuss.

  57. Zend_Registry
  58. Registering a thing (variable, array, class...) to the global application is write once use anywhere. Of course, this anywhere refers to your entire project. Is it a bit expensive? But if you use it often, it will be helpful. It eliminates the need for new class every time it is used.

  59. Zend_Rest
  60. This is not a small thing. Zend is full of classic programs. Rest is similar to xmlrpc and soap. It is the latest web service and its use does not seem to be as much as xmlrpc. Not as much soap. Legend has it that I also have a paper by the father of rest...the legendary zend.

  61. Zend_Search_Lucence
  62. The text-based search engine is of course adapted from Lucence. Now I am beginning to wonder if zend is like dominating PHP. Why can’t I write anything…I haven’t tried it.

  63. Zend_Server
  64. Provides support for other zend classes. Is a basic class. Of course, you can also use it yourself. Maybe you can develop a better web service than REST with this thing...

  65. Zend_Service
  66. In addition to the various services of Google on the Internet, why should Google be taken out? It is not easy to implement? Or Google is too powerful... I have never used any of these... I will use them. I saw an awesome person using delicious on csdn to add relevant articles to his csdn blog... (I requested csdn many times to add relevant articles, but nothing happened... This guy is really awesome. What csdn can't give us. We Do it yourself. No guns or cannons, we make them ourselves)

  67. Zend_Session
  68. This is a good thing, providing an API for storing sessions and providing sessions. Of course, this is prepared for cross-domain names and cross-servers. Of course, it can also replace the traditional session_start()...if you want to do this...

  69. Zend_Translate
  70. Language issue solved. . . What I'm most happy about is seeing zend using .mo files. This mo file is a language pack in drupal. zend does a good job.

  71. Zend_Uri
  72. Verify URL class, this is also the basis and is called by other zend members. You can also use it yourself.

  73. Zend_Validate
  74. Validator, there is a filter in front of it for filtering. This is verified. The essence is the same. It is to judge whether it complies with the rules, and then validate returns whether it is true or false. Filter directly removes the non-compliant areas. Of course we all must have our own filters and validators. Take a good look at zend and make modifications.

  75. Zend_Version
  76. This is the best part of the source code in zend to read...it is the simplest. It is recommended that you read it whether you want to learn zend or not...so that when you are bragging to others, you can say: zend. I have read its source code a few years ago and it is well written...

  77. Zend_View
  78. A member of Zend MVC. He can also be considered one of the Five Tiger Generals. But it is not used in my case... I used smarty as a replacement... I feel a bit sorry for zend. There are so many things in zend, but I only used a few... Sigh... But the helper of zend_view is very good. It can replace handwriting and generate various codes that need to be displayed on the view layer.

  79. Zend_XmlRpc
  80. Web service, xmlrpc is the simplest one. Of course, zend’s class also fulfills the 80/20 mission. I think very few people use it.

Zend is also quite consistent with the 2/8 theory, 20% of programs are frequently used. The rest are rarely used. But as a complete framework, zend is classic.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/752436.htmlTechArticleIn fact, what zend does is just package all the knowledge of a super professional phper into a package and provide it to everyone use. Of course, this phper habit may not meet your needs, just take...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template