Logging

Log Messages Log Targets Performance Profiling Yii provides a powerful logging framework that is highly customizable and extensible. Using this framework, you can easily log various types of messages, filter them, and gather them at different targets, such as files, databases, emails. Using the Yii logging framework involves the following steps: Record log messages at various places in your code; Configure log targets in the application configuration to filter and export log messages; Examine

jui\Widget registerWidget()

registerWidget() protected method Registers a specific jQuery UI widget asset bundle, initializes it with client options and registers related events protected void registerWidget ( $name, $id = null )$name string The name of the jQuery UI widget $id string The ID of the widget. If null, it will use the id value of $options.

jui\Widget registerClientOptions()

registerClientOptions() protected method Registers a specific jQuery UI widget options protected void registerClientOptions ( $name, $id )$name string The name of the jQuery UI widget $id string The ID of the widget

jui\Widget registerClientEvents()

registerClientEvents() protected method Registers a specific jQuery UI widget events protected void registerClientEvents ( $name, $id )$name string The name of the jQuery UI widget $id string The ID of the widget

jui\Widget init()

init() public method Initializes the widget. If you override this method, make sure you call the parent implementation first. public void init ( )

jui\Widget $options

$options public property The HTML attributes for the widget container tag. See also yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. public array $options = []

jui\Widget $clientOptions

$clientOptions public property The options for the underlying jQuery UI widget. Please refer to the corresponding jQuery UI widget Web page for possible options. For example, this page shows how to use the "Accordion" widget and the supported options (e.g. "header"). public array $clientOptions = []

jui\Widget $clientEvents

$clientEvents public property The event handlers for the underlying jQuery UI widget. Please refer to the corresponding jQuery UI widget Web page for possible events. For example, this page shows how to use the "Accordion" widget and the supported events (e.g. "create"). Keys are the event names and values are javascript code that is passed to the .on() function as the event handler. For example you could write the following in your widget configuration: 'clientEvents' => [ 'change'

jui\Widget $clientEventMap

$clientEventMap protected property Event names mapped to what should be specified in .on(). If empty, it is assumed that event passed to clientEvents is prefixed with widget name. protected array $clientEventMap = []

jui\Tabs run()

run() public method Renders the widget. public void run ( )