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 getLogger()

getLogger() public static method public static yii\log\Logger getLogger ( )return yii\log\Logger Message logger

BaseYii endProfile()

endProfile() public static method Marks the end of a code block for profiling. This has to be matched with a previous call to beginProfile() with the same category name. See also beginProfile(). public static void endProfile ( $token, $category = 'application' )$token string Token for the code block $category string The category of this log message

BaseYii error()

error() public static method Logs an error message. An error message is typically logged when an unrecoverable error occurs during the execution of an application. public static void error ( $message, $category = 'application' )$message string The message to be logged. $category string The category of the message.

BaseYii getAlias()

getAlias() public static method Translates a path alias into an actual path. The translation is done according to the following procedure: If the given alias does not start with '@', it is returned back without change; Otherwise, look for the longest registered alias that matches the beginning part of the given alias. If it exists, replace the matching part of the given alias with the corresponding registered path. Throw an exception or return false, depending on the $throwException paramet

BaseYii autoload()

autoload() public static method Class autoload loader. This method is invoked automatically when PHP sees an unknown class. The method will attempt to include the class file according to the following procedure: Search in $classMap; If the class is namespaced (e.g. yii\base\Component), it will attempt to include the file associated with the corresponding path alias (e.g. @yii/base/Component.php); This autoloader allows loading classes that follow the PSR-4 standard and have its top-level na

BaseYii createObject()

createObject() public static method Creates a new object using the given configuration. You may view this method as an enhanced version of the new operator. The method supports creating an object based on a class name, a configuration array or an anonymous function. Below are some usage examples: // create an object using a class name $object = Yii::createObject('yii\db\Connection'); // create an object using a configuration array $object = Yii::createObject([ 'class' => 'yii\db\Con

BaseYii configure()

configure() public static method Configures an object with the initial property values. public static object configure ( $object, $properties )$object object The object to be configured $properties array The property initial values given in terms of name-value pairs. return object The object itself

BaseYii beginProfile()

beginProfile() public static method Marks the beginning of a code block for profiling. This has to be matched with a call to endProfile() with the same category name. The begin- and end- calls must also be properly nested. For example, \Yii::beginProfile('block1'); // some code to be profiled \Yii::beginProfile('block2'); // some other code to be profiled \Yii::endProfile('block2'); \Yii::endProfile('block1'); See also endProfile(). public static void beginProfile ( $token, $

BaseYii $classMap

$classMap public static property Class map used by the Yii autoloading mechanism. The array keys are the class names (without leading backslashes), and the array values are the corresponding class file paths (or path aliases). This property mainly affects how autoload() works. See also autoload(). public static array $classMap = []