Download E-books Web Application Development with Yii and PHP PDF

By Jeffrey Winesett

For Hypertext Preprocessor programmers with a craving so as to add modernity and class to their internet purposes, this publication could be a revelation. A step by step educational to Yii, it talks you thru the improvement of a whole real-world application.

Overview

  • A step by step consultant to making a latest internet program utilizing personal home page, MySQL, and Yii
  • Build a real-world, user-based, database-driven venture activity administration software utilizing the Yii improvement framework.
  • Start with a basic concept, and end with deploying to construction, studying every thing approximately Yii inbetween, from "A"ctive checklist to "Z"ii part library.

In Detail

This booklet is a step-by-step instructional in constructing a real-world software utilizing the incremental and iterative method of software program improvement. You know about agile software program improvement by means of leaning at the agile nature of the Yii program improvement framework. You contact on each one element of the software program improvement lifecycle through construction a venture activity administration software from idea via creation deployment.

After a quick, basic advent to the Yii framework and outlining the software program improvement method taken during the ebook, the chapters holiday down within the similar approach as software program improvement iterations do in real-world initiatives. After the first generation, you could have a operating and confirmed software with a sound, validated connection to a database.

In the 2d and third iterations, we flesh out our major database entities and area item version and get to grips with Yii's object-relational-mapping (ORM) layer, energetic list. We additionally the best way to lean on Yii's auto-generation instruments to immediately construct our create/read/update/delete (CRUD) performance opposed to our newly created version. those iterations additionally specialize in how Yii's shape validation and submission version works. by way of the tip of the 3rd generation you have got a operating software in an effort to mange initiatives and matters (tasks) inside of these projects.

The 4th and fifth iterations are devoted to consumer administration. We know about the integrated authentication version inside of Yii to help in program login and logout performance. We then dive into the authorization version, first making the most of a Yii's basic entry keep watch over version, then imposing the extra subtle role-based entry keep watch over (RBAC) framework that Yii offers.

What you are going to research from this book

  • Auto-generate skeleton net functions in addition to CRUD scaffolding for the area item version utilizing the integrated command-line interface
  • Use Yii database migrations to model and deal with your database changes
  • Create user-based functions with Yii's authentication version
  • Enhance your user-based program to regulate a user's entry to add performance
  • Write an administrative console software to increase the positive factors supplied by way of Yii's robust command-line instruments
  • Integrate different frameworks and libraries right into a Yii program to extra expand its characteristic set
  • Spend much less time coping with program configuration by means of making the most of Yii's brilliant defaults and conventions.
  • Learn how effortless it's to enforce a multi-user program through the use of Yii's authentication and role-based authorization versions
  • Update your code to correctly deal with the user's final login time and shop it within the database

Show description

Read Online or Download Web Application Development with Yii and PHP PDF

Best Development books

Software and System Development using Virtual Platforms: Full-System Simulation with Wind River Simics

Digital systems are discovering common use in either pre- and post-silicon software program and procedure improvement. They decrease time to industry, enhance method caliber, make improvement extra effective, and let actually concurrent hardware/software layout and bring-up. digital structures bring up productiveness with extraordinary inspection, configuration, and injection services.

Starting Out with Java: From Control Structures through Objects (6th Edition)

Word: you're buying a standalone product; MyProgrammingLab® does no longer come packaged with this content material. if you'd like to buy either the actual textual content and MyProgrammingLab look for 0134059875 / 9780134059877     beginning Out with Java: From keep watch over constructions via items plus MyProgrammingLab with Pearson eText -- entry Card package deal, 6/e   package deal involves: 0133957055 / 9780133957051 beginning Out with Java: From regulate buildings via gadgets, 6/e 0133885569 / 9780133885569 0133957608 / 9780133957600 MyProgrammingLab with Pearson eText -- entry Card -- for beginning Out with Java: From keep an eye on constructions via items, 6/e MyProgrammingLab should still basically be bought whilst required through an teacher.

Ground Control: Fear and Happiness in the Twenty-First-Century City

Whilst the figures say crime is falling, why are we extra nervous than ever? may well our cities and towns be developing worry and distrust? extra estate is being in-built Britain than at any time because the moment international warfare - yet it really is owned via deepest organizations, designed for revenue and watched over via CCTV.

Refactoring: Improving the Design of Existing Code

Because the program of item technology--particularly the Java programming language--has develop into regular, a brand new challenge has emerged to confront the software program improvement neighborhood. major numbers of poorly designed courses were created by means of less-experienced builders, leading to purposes which are inefficient and tough to take care of and expand.

Additional info for Web Application Development with Yii and PHP

Show sample text content

Forty four ] Chapter three due to the fact this can be a web-based software, and given the character of the knowledge we have to shop, retrieve, and manage, we will finish that you will want to persist the knowledge during this program. additionally, in response to the relationships that exist among the kinds of knowledge we wish to seize and deal with, a great method of storing this knowledge will be in a relational database. in line with its ease of use, first-class cost aspect, its common acceptance between personal home page program builders, and its compatibility with the Yii framework, we'll be utilizing MySQL because the particular database server. Now that we all know adequate approximately what we'll begin development and the way we will begin construction it, let's start. developing the recent software First issues first, let's get the preliminary Yii net software created. we now have already obvious how effortless this is often to complete in bankruptcy 2, Getting all started. As we did there, we'll imagine the subsequent: • YiiRoot is the listing the place you may have put in Yii • WebRoot is configured because the rfile root of your net server (that is, to the place http://localhost/ resolves) So from the command line, switch for your WebRoot listing and execute the subsequent: % YiiRoot/framework/yiic webapp trackstar Create an internet software less than '/Webroot/trackstar'? [Yes|No] sure this gives us with our skeleton listing constitution and our out-of-the-box operating software. you have to be capable of view the house web page of this new software through navigating to http://localhost/trackstar/index. personal home page? r=site/index. simply because our default controller is SiteController and the default motion inside of that controller is actionIndex(), lets additionally navigate to an analogous web page with out specifying the path. [ forty five ] The TrackStar program Connecting to the database Now that we have got our skeleton software up and working, let's paintings on getting it safely attached to a database. in truth, the skeleton software used to be autoconfigured to take advantage of a database. a derivative of utilizing the yiic device is that our new software is configured to exploit a SQLite database. for those who take a peek by and large software configuration dossier, situated at protected/config/main. personal home page, one can find the next statement approximately midway down: 'db'=>array('connectionString' => 'sqlite:'. dirname(__FILE__). '/.. / data/testdrive. db', ), and you may additionally be certain the life of protected/data/testdrive. db, that is the SQLite database it really is configured to exploit. on the grounds that we've got already made the choice to exploit MySQL, we are going to intend to make a few configuration adjustments. even though, earlier than we modify the configuration to exploit a MySQL database server, let's in brief discuss Yii and databases extra in most cases. Yii and databases Yii offers nice help for database programming. Yii's info entry gadgets (DAO) are equipped on best of the personal home page info gadgets (PDO) extension (http://php. net/pdo). it is a database abstraction layer that allows the applying to have interaction with the database via a database-independent interface.

Rated 4.73 of 5 – based on 20 votes