base\Action $controller

$controller public property The controller that owns this action public yii\base\Controller|yii\web\Controller $controller = null

BaseYii warning()

warning() public static method Logs a warning message. A warning message is typically logged when an error occurs while the execution can still continue. public static void warning ( $message, $category = 'application' )$message string The message to be logged. $category string The category of the message.

BaseYii trace()

trace() public static method Logs a trace message. Trace messages are logged mainly for development purpose to see the execution work flow of some code. public static void trace ( $message, $category = 'application' )$message string The message to be logged. $category string The category of the message.

BaseYii t()

t() public static method Translates a message to the specified language. This is a shortcut method of yii\i18n\I18N::translate(). The translation will be conducted according to the message category and the target language will be used. You can add parameters to a translation message that will be substituted with the corresponding value after translation. The format for this is to use curly brackets around the parameter name as you can see in the following example: $username = 'Alexander'; e

BaseYii setLogger()

setLogger() public static method Sets the logger object. public static void setLogger ( $logger )$logger yii\log\Logger The logger object.

BaseYii setAlias()

setAlias() public static method Registers a path alias. A path alias is a short name representing a long path (a file path, a URL, etc.) For example, we use '@yii' as the alias of the path to the Yii framework directory. A path alias must start with the character '@' so that it can be easily differentiated from non-alias paths. Note that this method does not check if the given path exists or not. All it does is to associate the alias with the path. Any trailing '/' and '\' characters in the

BaseYii powered()

powered() public static method Returns an HTML hyperlink that can be displayed on your Web page showing "Powered by Yii Framework" information. public static string powered ( )return string An HTML hyperlink that can be displayed on your Web page showing "Powered by Yii Framework" information

BaseYii info()

info() public static method Logs an informative message. An informative message is typically logged by an application to keep record of something important (e.g. an administrator logs in). public static void info ( $message, $category = 'application' )$message string The message to be logged. $category string The category of the message.

BaseYii getVersion()

getVersion() public static method Returns a string representing the current version of the Yii framework. public static string getVersion ( )return string The version of Yii framework

BaseYii getRootAlias()

getRootAlias() public static method Returns the root alias part of a given alias. A root alias is an alias that has been registered via setAlias() previously. If a given alias matches multiple root aliases, the longest one will be returned. public static string|boolean getRootAlias ( $alias )$alias string The alias return string|boolean The root alias, or false if no root alias is found