base\Controller setViewPath()

setViewPath() public method (available since version 2.0.7) Sets the directory that contains the view files. public void setViewPath ( $path )$path string The root directory of view files. throws yii\base\InvalidParamException if the directory is invalid

caching\WinCache deleteValue()

deleteValue() protected method Deletes a value with the specified key from cache This is the implementation of the method declared in the parent class. protected boolean deleteValue ( $key )$key string The key of the value to be deleted return boolean If no error happens during deletion

i18n\MissingTranslationEvent $message

$message public property The message to be translated. An event handler may use this to provide a fallback translation and set $translatedMessage if possible. public string $message = null

redis\ActiveQuery max()

max() public method Returns the maximum of the specified column values. public integer max ( $column, $db = null )$column string The column name or expression. Make sure you properly quote column names in the expression. $db yii\redis\Connection The database connection used to execute the query. If this parameter is not given, the db application component will be used. return integer The maximum of the specified column values.

helpers\BaseInflector ordinalize()

ordinalize() public static method Converts number to its ordinal English form. For example, converts 13 to 13th, 2 to 2nd . .. public static string ordinalize ( $number )$number integer The number to get its ordinal value

web\AssetManager getPublishedPath()

getPublishedPath() public method Returns the published path of a file path. This method does not perform any publishing. It merely tells you if the file or directory is published, where it will go. public string|false getPublishedPath ( $path )$path string Directory or file path being published return string|false String the published file path. False if the file or directory does not exist

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

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

web\ErrorHandler createFrameworkVersionLink()

createFrameworkVersionLink() public method Creates string containing HTML link which refers to the page with the current version of the framework and version number text. public string createFrameworkVersionLink ( )return string Framework version information hyperlink.