Widgets

Using Widgets Creating Widgets Best Practices Widgets are reusable building blocks used in views to create complex and configurable user interface elements in an object-oriented fashion. For example, a date picker widget may generate a fancy date picker that allows users to pick a date as their input. All you need to do is just to insert the code in a view like the following: <?php use yii\jui\DatePicker; ?> <?= DatePicker::widget(['name' => 'date']) ?> There are a good number

base\ActionEvent $result

$result public property The action result. Event handlers may modify this property to change the action result. public mixed $result = null

swiftmailer\Mailer $swiftMailer

$swiftMailer public read-only property Swift mailer instance or array configuration. public array|\Swift_Mailer getSwiftMailer ( )

web\Response EVENT_AFTER_PREPARE

EVENT_AFTER_PREPARE event of type \yii\web\ResponseEvent An event that is triggered right after prepare() is called in send(). You may respond to this event to filter the response content before it is sent to the client.

helpers\BaseHtml ol()

ol() public static method Generates an ordered list. public static string ol ( $items, $options = [] )$items array|Traversable The items for generating the list. Each item generates a single list item. Note that items will be automatically HTML encoded if $options['encode'] is not set or true. $options array Options (name => config) for the radio button list. The following options are supported: encode: boolean, whether to HTML-encode the items. Defaults to true. This option is ig

mongodb\debug\MongoDbPanel $summaryName

$summaryName public read-only property Short name of the panel, which will be use in summary. public string getSummaryName ( )

db\Schema setTransactionIsolationLevel()

setTransactionIsolationLevel() public method Sets the isolation level of the current transaction. See also http://en.wikipedia.org/wiki/Isolation_(database_systems)#Isolation_levels. public void setTransactionIsolationLevel ( $level )$level string The transaction isolation level to use for this transaction. This can be one of yii\db\Transaction::READ_UNCOMMITTED, yii\db\Transaction::READ_COMMITTED, yii\db\Transaction::REPEATABLE_READ and yii\db\Transaction::SERIALIZABLE but also a string

base\Module $basePath

$basePath public property The root directory of the module. public string getBasePath ( )public void setBasePath ( $path )

gii\Generator $enableI18N

$enableI18N public property Whether the strings will be generated using Yii::t() or normal strings. public boolean $enableI18N = false

base\Module getModule()

getModule() public method Retrieves the child module of the specified ID. This method supports retrieving both child modules and grand child modules. See also hasModule(). public yii\base\Module|null getModule ( $id, $load = true )$id string Module ID (case-sensitive). To retrieve grand child modules, use ID path relative to this module (e.g. admin/content). $load boolean Whether to load the module if it is not yet loaded. return yii\base\Module|null The module instance, null if th