Tài liệu Web Application Development with Yii and PHP doc

332 3.8K 0
Tài liệu Web Application Development with Yii and PHP doc

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... code reuse in web programming and can significantly accelerate the development process As mentioned previously, if you stick with Yii' s built-in conventions, you can get your application up and running with little or no manual configuration Yii is also designed to help you with DRY development DRY stands for Don't Repeat Yourself, a key concept of agile application development All Yii applications are... importance and utility of application development frameworks • What Yii is and the characteristics of Yii that make it incredibly powerful and useful • MVC application architecture and the implementation of this architecture in Yii • A typical Yii web request life cycle and URL structure • Object-relational mapping and Active Record in Yii In the next chapter, we will go through the simple Yii installation... your next web application from scratch A modern, flexible, and extensible framework is almost as essential a tool to today's web developer as the programming language itself And when the two are particularly complementary, the results are an extremely powerful toolkit—Java and Spring, Ruby and Rails, C# and NET, and PHP and Yii Yii is the brainchild of founder Qiang Xue, who started the development. .. component-based, web application framework written in PHP5 The name is also representative of the adjectives most used to describe it, such as easy, efficient, and extensible Let's take a quick look at each of these characteristics of Yii, turn by turn Meet Yii Easy To run a Yii version 1.x-powered web application, all you need are the core framework files and a web server supporting PHP 5.1.0 or higher... develop with Yii, you only need to know PHP and object-oriented programming You are not required to learn any new configuration or templating language Building a Yii application mainly involves writing and maintaining your own custom PHP classes, some of which will extend from the core, Yii framework component classes Yii incorporates many of the great ideas and work from other well-known web programming... overview of unit and functional testing within a Yii application, and provides a concrete example of writing a unit test in Yii Chapter 4, Project CRUD, helps you to start interacting with the database, to begin adding features to the database-driven Yii application TrackStar You learn how to use Yii Migrations for database change management, and we use the Gii tool to create model classes and also to build... user experience, and design We add user comment functionality, introducing a reusable, content portlet architecture approach in the process We add in an RSS web feed and demonstrate how easy it is to integrate other third-party tools and frameworks within a Yii application We take advantage of Yii' s theming structure to help streamline and design the application, and then introduce Yii' s internationalization... Yii, you must configure your application development environment as a web server capable of supporting PHP 5.1.0 or above Yii has been thoroughly tested with the Apache HTTP server on Windows and Linux operating systems It may also run on other web servers and platforms that support PHP 5 We assume that the reader has previously engaged in PHP development, and has access to or otherwise has knowledge... earlier, Yii is an MVC framework and provides an explicit directory structure for each piece of model, view, and controller code Before we get started with building our first Yii application, we need to define a few key terms and look at how Yii implements and enforces this MVC architecture [ 11 ] Meet Yii Model Typically in an MVC architecture, the model is responsible for maintaining the state, and should... comments on projects and issues in the TrackStar application; we introduce how to configure and use a statistical query relation, how to create highly reusable user interface components called Widgets, and how to define and use named scopes in Yii Chapter 9, Adding an RSS Web Feed, demonstrates how easy it is to use other third-party frameworks and libraries in Yii applications, and shows you how to . class="bi x0 y0 w0 h0" alt="" Web Application Development with Yii and PHP Second Edition Learn the Yii application development framework by taking. the Yii framework better and creating formidable applications with it. Alexander Makarov is an experienced engineer from Russia, and a member of the Yii

Ngày đăng: 15/02/2014, 07:20

Từ khóa liên quan

Mục lục

  • Cover

  • Copyright

  • Credits

  • About the Author

  • About the Reviewers

  • www.PacktPub.com

  • Table of Contents

  • Preface

  • Chapter 1: Meet Yii

    • Easy

    • Efficient

    • Extensible

    • MVC architecture

      • Model

      • View

      • Controller

      • Stitching these together: Yii request routing

        • Blog posting example

        • Object-relational mapping and Active Record

          • Active Record

          • The view and controller

          • Summary

          • Chapter 2: Getting Started

            • Installing Yii

              • Installing a database

              • Creating a new application

Tài liệu cùng người dùng

Tài liệu liên quan