Yii Project Blueprints - download pdf or read online

By Charles R. Portwood II

ISBN-10: 178328773X

ISBN-13: 9781783287734

From belief to construction, the right way to increase real-world purposes with the Yii framework

About This Book

  • Develop real-world net functions via easy-to-follow, step by step processes
  • Create 8 initiatives from starting to finish that will help you discover the entire strength of Yii
  • Build a quick, user-based, database-driven content material administration procedure with a dashboard and RESTful API

Who This ebook Is For

This e-book is for intermediate-to-advanced point Yii builders who are looking to grasp the Yii framework and boost real-world purposes. you will have adventure of operating with Yii, Hypertext Preprocessor five, HTML, CSS, and JavaScript.

In Detail

The Yii framework is a high-performance, speedy, open resource, and a quick improvement personal home page framework that may be used to increase smooth internet functions. It offers the toolkit for constructing either own tasks and firm purposes. Yii's component-based structure shall we builders construct modules so they will not be customizing the underlying code base and in order that whatever they construct is straightforward to exploit in numerous projects.

This publication is a step by step advisor to constructing reusable real-world functions utilizing the Yii framework. The ebook will advisor you thru a number of tasks from the undertaking perception via to making plans your undertaking and implementation. you'll discover the main beneficial properties of the framework and easy methods to use it successfully and successfully to construct strong middle functions that you can reuse in real-world initiatives. on the finish of every undertaking, you will have a greater realizing of Yii and a operating program for you to use within the future.

Show description

Read or Download Yii Project Blueprints PDF

Similar web programming books

Download PDF by Jeff McWherter: Testing ASP.NET Web Applications

This publication is a smart advent to checking out ASP. web internet functions, from unit checking out via attractiveness checking out. it is not only for the QA division, although. It features a nice advent to the forged programming rules and demonstrates how they assist create code that isn't simply testable, yet versatile and extensible, too.

Building on SugarCRM - download pdf or read online

Within the crowded box of shopper dating administration (CRM) platforms, SugarCRM stands out—not just for its modular layout, but in addition for the benefit with you could boost, customise, and expand your CRM purposes. This concise booklet offers an intensive evaluation of the improvement instruments and APIs to be had in SugarCRM 6.

Yii Project Blueprints by Charles R. Portwood II PDF

From perception to construction, the way to enhance real-world purposes with the Yii framework approximately This BookDevelop real-world internet functions via easy-to-follow, step by step processesCreate 8 initiatives from starting to finish that will help you discover the complete strength of YiiBuild a quick, user-based, database-driven content material administration procedure with a dashboard and RESTful APIWho This e-book Is ForThis booklet is for intermediate-to-advanced point Yii builders who are looking to grasp the Yii framework and increase real-world functions.

Get Web Development Recipes PDF

Smooth net improvement is much more than simply HTML and CSS with a bit JavaScript jumbled in. humans wish swifter, extra usable interfaces that paintings on a number of units, and also you desire the most recent instruments and methods to make that ensue. This ebook supplies over forty concise suggestions to modern-day internet improvement difficulties, and introduces new options that would extend your ability set---proven, functional recommendation from authors who use those instruments and strategies each day.

Additional info for Yii Project Blueprints

Sample text

Using the instructions outlined in Chapter 1, A Task-management Application, we enable the Gii module and create a new model called Location to interact with the locations table in our database. php) to automatically set the created and updated time: public function beforeSave() { if ($this->isNewRecord) $this->created = time(); $this->updated = time(); return parent::beforeSave(); } Then, we modify the rules() method: public function rules() { return array( array('created, updated', 'numerical', 'integerOnly'=>true), array('name, lat, long, city, state', 'required'), array('title, data', 'safe'), array('name, lat, long, city, state, created, updated', 'safe', 'on'=>'search'), ); } [ 48 ] Chapter 2 Importing the data feed Before creating the frontend controllers to display our data, we need to create a tool to import our data feed.

We can do this by adding a filter to our controller called accessControl and defining access rules to access our content. A filter is a piece of code that gets executed before (and/or after) a controller action runs, which means that the user will be required to be authenticated before accessing our content. To add the accessControl filter, add the following to both TasksController and ProjectsController: public function filters() { return array( 'accessControl', ); } [ 34 ] Chapter 1 Next, create a new method called accessRules(), which will define what users can access our application.

Have a look at the following code: $this->dropTable('projects'); $this->dropTable('tasks'); Now that the migration has been created, run migrate up from the command line to create the database and apply our migration. 14) Total 1 new migration to be applied: m131213_013354_tasks Apply the above migration? 009s) Migrated up successfully. db, the SQLite database that was created by our migrations. Migration commands can be run non-interactively by appending --interactive=0 to the migrate command.

Download PDF sample

Yii Project Blueprints by Charles R. Portwood II


by Anthony
4.1

Rated 4.73 of 5 – based on 43 votes