Installing Yii

Installing via Composer Installing from an Archive File Other Installation Options Verifying the Installation Configuring Web Servers You can install Yii in two ways, using the Composer package manager or by downloading an archive file. The former is the preferred way, as it allows you to install new extensions or update Yii by simply running a single command. Standard installations of Yii result in both the framework and a project template being downloaded and installed. A project template is

i18n\PhpMessageSource loadMessagesFromFile()

loadMessagesFromFile() protected method Loads the message translation for the specified language and category or returns null if file doesn't exist. protected array|null loadMessagesFromFile ( $messageFile )$messageFile string Path to message file return array|null Array of messages or null if file not found

i18n\PhpMessageSource 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. When both are present, the en-US messages will be merged over en. See loadFallbackMessages() for details. If the $language is less specific than $sourceLanguage, the method will try to load the messages for $sourceLanguage. For example: $sourceLanguage is en-GB, $language is en. The method will lo

i18n\PhpMessageSource loadFallbackMessages()

loadFallbackMessages() protected method (available since version 2.0.7) The method is normally called by loadMessages() to load the fallback messages for the language. Method tries to load the $category messages for the $fallbackLanguage and adds them to the $messages array. protected array loadFallbackMessages ( $category, $fallbackLanguage, $messages, $originalMessageFile )$category string The message category $fallbackLanguage string The target fallback language $messages array Th

i18n\PhpMessageSource getMessageFilePath()

getMessageFilePath() protected method Returns message file path for the specified language and category. protected string getMessageFilePath ( $category, $language )$category string The message category $language string The target language return string Path to message file

i18n\PhpMessageSource $fileMap

$fileMap public property Mapping between message categories and the corresponding message file paths. The file paths are relative to $basePath. For example, [ 'core' => 'core.php', 'ext' => 'extensions.php', ] public array $fileMap = null

i18n\PhpMessageSource $basePath

$basePath public property The base path for all translated messages. Defaults to '@app/messages'. public string $basePath = '@app/messages'

i18n\MissingTranslationEvent $translatedMessage

$translatedMessage public property The translated message. An event handler may overwrite this property with a translated version of $message if possible. If not set (null), it means the message is not translated. public string $translatedMessage = null

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

i18n\MissingTranslationEvent $language

$language public property The language ID (e.g. en-US) that the message is to be translated to public string $language = null