![]() Note: The file path or URL being aliased may not necessarily refer to an existing file or resource. Yii::setAlias( '/definitely/not/foo/Bar.php') an alias of a concrete file that contains a \foo\Bar class You can define an alias for a file path or URL by calling Yii::setAlias(): // an alias of a file path The Yii framework represents the base URL for the currently running Web application. For example, the alias represents the installation path of Yii has many pre-defined aliases already available. Without leading will be prefixed with character. An alias must start with the character to be differentiated from normal file paths and URLs. ![]() Aliases are used to represent file paths or URLs so that you don't have to hard-code absolute paths or URLs in your
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |