Yii Project Blueprints by Charles R. Portwood II

By Charles R. Portwood II

From belief to creation, methods to enhance real-world purposes with the Yii framework

About This Book

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

Who This publication Is For

This publication is for intermediate-to-advanced point Yii builders who are looking to grasp the Yii framework and advance real-world purposes. you'll have adventure of operating with Yii, personal home page five, HTML, CSS, and JavaScript.

In Detail

The Yii framework is a high-performance, quick, open resource, and a swift improvement Hypertext Preprocessor framework that may be used to increase sleek internet functions. It presents the toolkit for constructing either own tasks and company functions. Yii's component-based structure shall we builders construct modules so they are usually not customizing the underlying code base and in order that whatever they construct is straightforward to take advantage of in several projects.

This e-book is a step by step advisor to constructing reusable real-world functions utilizing the Yii framework. The publication will consultant you thru a number of initiatives from the undertaking perception via to making plans your venture and implementation. you'll discover the main good points of the framework and the way to use it successfully and successfully to construct reliable center functions that you'll reuse in real-world tasks. on the finish of every venture, you should have a greater realizing of Yii and a operating program so that you can use within the future.

Show description

Read Online or Download Yii Project Blueprints PDF

Best web programming books

Learning Ext JS 3.2

The publication offers lots of enjoyable instance code and screenshots to steer you thru the construction of examples to aid with studying. through taking a chapter-by-chapter examine every one significant point of the Ext JS framework, the ebook enables you to digest the to be had positive factors in small, simply comprehensible chunks, permitting you to begin utilizing the library to your improvement wishes instantly.

Foundation Flex for Developers: Data-Driven Applications with PHP, ASP.NET, ColdFusion, and LCDS

Flex is crucial and flexible expertise for growing net software front-ends. yet what each reliable internet software wishes is a strong facts resource, be it XML, or a database. Flex is particularly adaptable when it comes to connecting to facts resources, and that's the major concentration of this e-book. In starting place Flex for builders, writer Sas Jacobs assumes that you have got the fundamentals of Flex down already, and explores intimately the right way to create expert data-centric Flex 2 and Flex three functions.

Dynamic Web programming and HTML5

With businesses and contributors more and more depending on the internet, the necessity for useful, well-trained internet builders and maintainers is transforming into. assisting readers grasp internet improvement, Dynamic net Programming and HTML5 covers particular net programming languages, APIs, and coding suggestions and gives an in-depth figuring out of the underlying options, thought, and rules.

Beginning HTML5 Media: Make the most of the new video and audio standards for the Web

Starting HTML5 Media, moment version is a finished creation to HTML5 video and audio. The HTML5 video typical allows browsers to help audio and video components natively. This makes it really easy for net builders to put up audio and video, integrating either in the common presentation of web content.

Additional info for Yii Project Blueprints

Sample text

To accomplish this, we're going to create a console task that can be run from the command line. This task will fetch information from the provided JSON feed and import it into our database. By making this a command-line task, we can automate and schedule the import via scheduled tasks on Windows or a Unix crontab. Designing the database With the core components of our application identified, we can now get started with developing the database. Let's start with creating our locations table. Locations When developing applications that import data from an external source, you can often take advantage of the structure of the external feed to determine what your own database tables should look like.

Validation rules in Yii are stored in the model's rules() method and are executed when the model's validate() method is called. Starting with our tasks model, we can see that Gii has already prepopulated our validation rules for us based upon our database. There are several fields of this model that we would like to always have set, namely, project_id, title, the task itself, and whether or not it has been completed. We can make these fields required in our model by adding a new array to our rules section, as follows: array('project_id, title, data, completed', 'required') By making these fields required in our model, we can make client- and server-side validation easier when we start making forms.

Projects/index' ), ) ) Adding extra routes Finally, add two more routes to our URL Manager routes array. These routes will help us more easily access the login and logout actions for our site. Have a look at the following code: 'login' => 'site/login', 'logout' => 'site/logout' [ 41 ] A Task-management Application Summary In this chapter, we covered quite a lot of information. We created an automated way of creating and distributing our database, models to represent the tables in the database, and a few controllers to manage and interact with our data.

Download PDF sample

Rated 4.82 of 5 – based on 16 votes