Handling Errors

Using Error Handler Customizing Error Display Yii includes a built-in error handler which makes error handling a much more pleasant experience than before. In particular, the Yii error handler does the following to improve error handling: All non-fatal PHP errors (e.g. warnings, notices) are converted into catchable exceptions. Exceptions and fatal PHP errors are displayed with detailed call stack information and source code lines in debug mode. Supports using a dedicated controller action to

sphinx\QueryBuilder buildWithin()

buildWithin() public method public string buildWithin ( $columns )$columns array return string The ORDER BY clause built from \yii\sphinx\query.

bootstrap\ActiveField createLayoutConfig()

createLayoutConfig() protected method protected array createLayoutConfig ( $instanceConfig )$instanceConfig array The configuration passed to this instance's constructor return array The layout specific default configuration for this instance

validators\IpValidator $notInRange

$notInRange public property User-defined error message is used when validation fails due to IP address is not not allowed by $ranges check. You may use the following placeholders in the message: {attribute}: the label of the attribute being validated {value}: the value of the attribute being validated See also $ranges. public string $notInRange = null

sphinx\Query snippetCallback()

snippetCallback() public method Sets the PHP callback, which should be used to retrieve the source data for the snippets building. See also snippetCallback(). public $this snippetCallback ( $callback )$callback callable PHP callback, which should be used to fetch source data for the snippets. return $this The query object itself

web\User afterLogout()

afterLogout() protected method This method is invoked right after a user is logged out via logout(). The default implementation will trigger the EVENT_AFTER_LOGOUT event. If you override this method, make sure you call the parent implementation so that the event is triggered. protected void afterLogout ( $identity )$identity yii\web\IdentityInterface The user identity information

mongodb\i18n\MongoDbMessageSource loadMessages()

loadMessages() protected method Loads the message translation for the specified language and category. If translation for specific locale code such as en-US isn't found it tries more generic en. protected array loadMessages ( $category, $language )$category string The message category $language string The target language return array The loaded messages. The keys are original messages, and the values are translated messages.

helpers\BaseConsole clearLineBeforeCursor()

clearLineBeforeCursor() public static method Clears text from cursor position to the beginning of the line by sending ANSI control code EL with argument 1 to the terminal. Cursor position will not be changed. public static void clearLineBeforeCursor ( )

elasticsearch\ActiveRecord updateAllCounters()

updateAllCounters() public static method Updates all matching records using the provided counter changes and conditions. For example, to add 1 to age of all customers whose status is 2, Customer::updateAllCounters(['age' => 1], ['status' => 2]); See also [[yii\elasticsearch\ActiveRecord::primaryKeysByCondition()]]. public static integer updateAllCounters ( $counters, $condition = [] )$counters array The counters to be updated (attribute name => increment value). Use negative va

authclient\OpenId $trustRoot

$trustRoot public property Client trust root (realm). public string getTrustRoot ( )public void setTrustRoot ( $value )