How we can change the url for yii::app()->homeurl in yii2?
Answer / Satendra Kumar Batsal
To change the URL of yii::app()->homeUrl in Yii2, you need to set the value of 'homeUrl' in your application's configuration. Here is an example of how to do it in a web-based config file:
```php
return [
// other settings...
'components' => [
'urlManager' => [
'class' => yiiwebUrlManager::class,
'homeUrl' => '/your-desired-url',
],
],
];
| Is This Answer Correct ? | 0 Yes | 0 No |
How we can call layouts in controller file in yii?
What is the naming convention in yii framework? Explain
What is components in yii? Explain
How we can get current controller & action name in yii?
Can you list some database related functions in yii?
What is components in yii?
How can we use ajax in yii?
How can we set a flash message in yii2?
How do we extend yii?
What is the directory structure of yii2?
What is cmodel class in yii 2.0 framework?
Why gii is used in yii 2.0?