Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 465 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
465
Dung lượng
2,28 MB
Nội dung
[...]... Framework usage statistics, at http:/ /framework .zend. com/about/numbers Zend Framework case studies, at http:/ /framework .zend. com/about/casestudies Zend Framework components, at http:/ /framework .zend. com/about/components The Zend Framework CLI tool, at http:/ /framework .zend. com/manual/en /zend. tool .framework. clitool.html The Zend Framework filesystem layout, at http:/ /framework .zend. com/wiki/display/ZFDEV/Choosing+Your+Application%27s+... move to the next chapter, which discusses core application development concepts and gets you started with building a framework- based Web application If you’d like to learn more about the topics discussed in this chapter, you’ll find the following links useful: The official Zend Framework Web site, at http:/ /framework .zend. com/ The Zend Framework community wiki, at http:/ /framework .zend. com/wiki/ Zend Framework. .. Chapter 1: Introducing the Zend Framework Add Zend Framework Libraries At this point, you have an important decision to make You must decide whether to include the Zend Framework libraries with your application, or leave it up to users to download and install these libraries themselves There are pros and cons to each option, as follows: Requiring users to download the Zend Framework libraries themselves... documentation—the manual for Zend Framework v1.9 (circa 2009) weighs in at 3.7MB, as compared to the 780KB manual that shipped with Zend Framework v1.0 in 2007 3 4 Zend Framework: A Beginner’s Guide Although Zend Technologies operates commercially in a number of different markets, it makes the Zend Framework available to the public as an open-source project under the BSD License, thereby allowing it to be freely used... http://www.zf-beginners -guide. com/ Code archives are organized by chapter, and may be directly downloaded and used in your Zend Framework development environment Chapter 1 Introducing the Zend Framework 1 2 Zend Framework: A Beginner’s Guide Key Skills & Concepts Learn the benefits of framework- based development Understand the history and unique advances of the Zend Framework Understand the structure of a Zend Framework. .. apply to all PHP frameworks, not just the Zend Framework However, the Zend Framework does possess some unique features that give it an edge over the competition Loose Coupling Unlike many other frameworks, where the individual pieces of the framework are closely linked with each other, the components of the Zend Framework can be easily separated and used on an “as needed” basis So, while the Zend Framework. .. incompatibilities However, it also “locks in” users to a particular version of the Zend Framework, possibly making it harder to upgrade to newer versions with additional features or necessary bug fixes For purposes of this book, I’ll assume that the Zend Framework libraries will be bundled with the application Therefore, copy the contents of the Zend Framework library/ directory to $APP_DIR/library/, as you did earlier... these directories, the two you’ll need immediately are the library/ and bin/ directories The library/ directory contains all the Zend Framework components, while the bin/ directory contains command-line tools that are helpful in initializing a new project and adding objects to it These two directories need to be manipulated as follows: The contents of the library/ directory should be moved to a location... the zf.sh script executable with the chmod command; you may also wish to rename or alias it to make it easier to access Figure 1-2 The contents of a Zend Framework release archive 9 10 Zend Framework: A Beginner’s Guide Figure 1-3 The output of the zf help command Here are examples of commands you can use to perform these tasks: shell> shell> shell> shell> shell> cd ZendFramework-XX mv library/* /usr/local/lib/php/... discusses the various tools available in the Zend Framework to build a localized, multilingual application that can be easily “ported” to different countries and regions Chapter 10, “Working with News Feeds and Web Services,” discusses how to use the Zend Framework to generate and read Atom or RSS news feeds; access third-party Web services using SOAP or REST; and allow developers to access your application . from reading with an appetite to develop your own applications using what has become the de facto standard in the industry: Zend Framework. —Matthew Weier O’Phinney, Project Lead, Zend Framework xiv Acknowledgments T he. “Introducing the Zend Framework, ” L introduces the Zend Framework, explaining the benefits of framework- based development and walking you through the process of creating a new Zend Framework project. Chapter. Application Directory 11 Create the Application Skeleton 11 Add Zend Framework Libraries 13 Define Virtual Host Settings 13 Using the Command-Line Tool 14 Summary 17 2 Working with Models, Views,