By Charles R. Portwood II

Key Features

  • Learn to paintings with the major facets of Yii Framework 2
  • Explore how you can create RESTful APIs with Yii
  • Incorporate codeception with Yii2 to check your code thoroughly

Book Description

The successor of Yii Framework 1.1, Yii2 is an entire rewrite of Yii Framework, probably the most renowned Hypertext Preprocessor five frameworks for making sleek net functions. The replace embraces the easiest practices and protocols demonstrated with more moderen models of Hypertext Preprocessor, whereas nonetheless holding the straightforward, speedy, and extendable habit present in its predecessor.

This ebook has been written to reinforce your abilities and information with Yii Framework 2. beginning with configuration and the way to initialize new initiatives, you will methods to configure, deal with, and use each element of Yii2 from Gii, DAO, question Builder, energetic checklist, and migrations, to asset supervisor. you will additionally notice tips on how to immediately try out your code utilizing codeception.

With this publication by means of your aspect, you will have the entire talents you must speedy create wealthy glossy internet and console functions with Yii2.

What you are going to learn

  • Explore Yii2's conventions and competently configure Yii2
  • Create either internet and console applications
  • Reduce improvement time via studying to create periods instantly with Gii, Yii2's automated code iteration tool
  • Use Yii2's database migration tool
  • Manage and entry databases with lively list, DAO, and question Builder
  • Handle person authentication and authorization inside of Yii2
  • Create RESTful APIs with Yii Framework 2
  • Test functions instantly with codeception

About the Author

Charles R. Portwood II has over 10 years of expertise constructing sleek internet purposes and is easily versed in integrating personal home page with local cellular purposes. An avid proponent of Yii Framework and open resource software program, Charles has contributed a number of publications, extensions, and purposes to the Yii neighborhood. as well as being a programmer, he's additionally a Linux process administrator.

Table of Contents

  1. Composer, Configuration, periods, and direction Aliases
  2. Console instructions and Applications
  3. Migrations, DAO, and question Building
  4. Active list, versions, and Forms
  5. Modules, Widgets, and Helpers
  6. Asset Management
  7. Authenticating and Authorizing Users
  8. Routing, Responses, and Events
  9. RESTful APIs
  10. Testing with Codeception
  11. Internationalization and Localization
  12. Performance and Security
  13. Debugging and Deploying

Show description

Read Online or Download Mastering Yii PDF

Similar web programming books

Aptana RadRails: An IDE for Rails Development: A comprehensive guide to using RadRails to develop your Ruby on Rails projects in a professional and productive manner

The RadRails IDE looks good fleshed out. It presents many beneficial aids to the Ruby on Rails programmer. The ebook indicates quite a few examples and display captures.

Plus, there also are a few accelerators. Like code templates. this allows you to outline snippets of general code. Then through a number of keys, a snippet could be inserted at a position contained in the major code. although, come to consider it, you might want to most likely minimise utilization of this selection. simply because if overused it might result in many code duplicates, which raises the scale of the final code, and makes upkeep more durable, if you would like to make an analogous switch to all circumstances of a given snippet.

RadRails additionally offers aid for a debugger. Making it effortless to invoke. this option is definitely worthy cautious examining.

HTML, XHTML & CSS For Dummies

I locate that HTML, XHTML & CSS for Dummies is of an identical caliber (and quirkiness) because the different "for Dummies" books. this can be a nice table reference publication for newbies or those who do not code websites usually. i might suggest this publication as a reference / part buy to precise net coding educational books.

Elgg 1.8 Social Networking

Create, customise, and installation your own social networking website with Elgg An up-to-date model of the first actual publication on Elgg precise and easy-to-understand research on development your personal social networking web site with Elgg discover the colossal diversity of Elgg's social networking features together with groups, sharing, profiles and relationships discover ways to create plugins and issues with vast tutorials Written through funds Costello, a middle developer of the Elgg workforce, with a foreword from Dave Tosh, Elgg co-founder.

Sinatra: Up and Running: Ruby for the Web, Simply

Make the most of Sinatra, the Ruby-based net software library and domain-specific language utilized by GitHub, LinkedIn, Engine backyard, and different trendy businesses. With this concise booklet, you are going to speedy achieve operating wisdom of Sinatra and its minimalist method of development either standalone and modular net functions.

Extra resources for Mastering Yii

Sample text

False) define('APPLICATION_ENV', getenv('APPLICATION_ENV')); else define('APPLICATION_ENV', 'prod'); } Our application now knows how to read the APPLCATTION_ENV variable from the environment variable, which will be passed either though our command line or our web server configuration. By default, if no environment is set, the APPLICATION_ENV variable will be set to prod. Next, we'll want to load a separate environment file that contains several environmental constants that we'll use to dynamically change how our application runs in different environments: $env = require(__DIR__ .

We'll start by creating a new application-wide constant called APPLICATION_ENV. This variable will be defined by either our web server or our console environment and will allow us to dynamically load different configuration files depending upon the environment that we're working in: 1. = false) define('APPLICATION_ENV', getenv('APPLICATION_ENV')); else define('APPLICATION_ENV', 'prod'); } Our application now knows how to read the APPLCATTION_ENV variable from the environment variable, which will be passed either though our command line or our web server configuration.

Php return require __DIR__ . '/env/' . APPLICATION_ENV . php'; [ 11 ] Composer, Configuration, Classes, and Path Aliases Most modern applications have several different environments depending upon their requirements. Typically, we'd break them down into four distinct environments: • The first environment we typically have is called DEV. This environment is where all of our local development occurs. Typically, developers have complete control over this environment and can change it, as required, to build their applications.

Download PDF sample

Rated 4.32 of 5 – based on 43 votes