debug\models\search\Debug $ajax

$ajax public property Ajax attribute input search value public integer $ajax = null

helpers\BaseUrl previous()

previous() public static method Returns the URL previously remembered. See also remember(). public static string|null previous ( $name = null )$name string The named associated with the URL that was remembered previously. If not set, it will use yii\web\User::$returnUrlParam. return string|null The URL previously remembered. Null is returned if no URL was remembered with the given name.

db\ColumnSchema $enumValues

$enumValues public property Enumerable values. This is set only if the column is declared to be an enumerable type. public array $enumValues = null

Shared Hosting Environment

Deploying a basic project template Deploying an advanced project template Shared hosting environments are often quite limited about configuration and directory structure. Still in most cases you can run Yii 2.0 on a shared hosting environment with a few adjustments. Deploying a basic project template Since in a shared hosting environment there's typically only one webroot, use the basic project template if you can. Refer to the Installing Yii chapter and install the basic project template lo

Console applications

Usage The entry script Configuration Creating your own console commands Besides the rich features for building web applications, Yii also has full-featured support for console applications which are mainly used to create background and maintenance tasks that need to be performed for a website. The structure of console applications is very similar to a Yii web application. It consists of one or more yii\console\Controller classes, which are often referred to as commands in the console environme

Query Builder

Building Queries Query Methods Built on top of Database Access Objects, query builder allows you to construct a SQL query in a programmatic and DBMS-agnostic way. Compared to writing raw SQL statements, using query builder will help you write more readable SQL-related code and generate more secure SQL statements. Using query builder usually involves two steps: Build a yii\db\Query object to represent different parts (e.g. SELECT, FROM) of a SELECT SQL statement. Execute a query method (e.g. a

bootstrap\ButtonDropdown $tagName

$tagName public property The tag to use to render the button public string $tagName = 'button'

rbac\PhpManager saveItems()

saveItems() protected method Saves items data into persistent storage. protected void saveItems ( )

debug\Panel $summary

$summary public read-only property Content that is displayed at debug toolbar public string getSummary ( )

Requests

Request Parameters Request Methods Request URLs HTTP Headers Client Information Requests made to an application are represented in terms of yii\web\Request objects which provide information such as request parameters, HTTP headers, cookies, etc. For a given request, you can get access to the corresponding request object via the request application component which is an instance of yii\web\Request, by default. In this section, we will describe how you can make use of this component in your appl