作者:empty 页数:246 出版社:empty |
Attribution:You must attribute the work in the manner spec fied by the author or licensor(but·ShareAlike:lf you alter, transform, or build upon this work, you may distribute the resulting workThe in for nat in in this book is dit i but ed on an as is*basis without warranty.Al hough every pre caut nhas been taken in the preparation of this work, neither the author(s) nor Sensi o Labs shall have any liability toany person or entity with respect to any loss or damage caused or alleged to bee a used directly or indirectly bythe information contained in this work.If you find typos or errors, feel free to report them by creating a ticket on the Symfony ticketing system(http://githab.com/symfony/symfony-docshssues) , Based on tickets and users feedback, this book iscontinuously updated.not in anyway that suggests that they endorse you or your use of the work) .only under the same, similar or a compatible license.For any reuse or distribution.you must makeclear to others the license terms of this work.
Chapter 1Symfony 2 and HTTP FundamentalsCongratulations!By learning abour Symfony 2.you're well on your way towards being a more productive,well-rounded and popular webdeveloper(actually, you're on your own for the last part) .Symfony2isbuilt to get back to basics:to develop tools that let you develop faster and build more robust applications,while staying out of your way.Symfony is built on the best ideas from many technologies:the tools andconcepts you're about to learn represent the efforts of thousands of people, over many years.In otherwords, youre not just learning Symfony , you're learning the fundamentals of the web, developmentbestpractices, and howto use many amazing new PHP libraries, inside or independently of Symfony 2.So, get readyTrue to the Symfony 2 philosophy, this chapter begins by explaining the fundamental concept commonto web development:HTTP.Regardless of your background or preferred programming language, thischapter is a must-read for everyoneHTTP is SimpleHTTP(Hypertext Transfer Protocol to the geeks) is a text language that allows two machines tocommunicate with eachother.Tha'sit!For example, when checking for the latest xk cd'comic, thefollowing(approx im nate) conversation takes place: