How to get the get home page url in yii?
Answer / Gurucharan Singh
To get the home page URL in Yii, you can use the following code:nYii::$app->urlManager->baseUrl . '/' . Yii::$app->controller->action->uniqueId
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the requirements of the yii?
Explain request life cycle in yii2 framework.
How to customizing helper classes in yii framework?
What are the server requirements to install yii 2.0 framework?
What does yii stand for?
What is helper in yii? Why it is used?
How we can change the url for yii::app()->homeurl in yii2?
What are the great feature of yii framework?
What is the difference between yii & yii2?
How to use module components and aliases?
What is widgets in yii? How we can use it?
How can we get all root directory path in yii2?