yii-url-manager Questions
14
Solved
How can I enable clean urls in Yii2. I want to remove index.php and '?' from url parameters. Which section needs to be edited in Yii2 for that?
Claw asked 23/10, 2014 at 9:42
9
Solved
Is there a buildin method or property in Yii to check if page is homepage?
I know i can use something like this:
$controller = Yii::app()->getController();
$isHome = $controller->getAction(...
Heinrik asked 9/9, 2012 at 18:35
4
Solved
first question:
i already remove index.php, but i want remove /web also. this is my .htaccess
RewriteEngine on
# If a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !...
Insalubrious asked 27/4, 2015 at 1:58
3
Solved
I am trying to generate a hyper link by the method mentioned in
http://www.yiiframework.com/doc-2.0/guide-helper-html.html#hyperlinks like this
Html::a('<b>Register</b>',
['story/...
Kerb asked 25/3, 2015 at 7:57
2
Solved
My Application is deployed on localhost/upload.
I am using following code to generate relative URL.
Url::to('@web/my_controller/action'); // it returns /upload/my_controller/action
But, I need...
Planter asked 15/1, 2015 at 8:30
3
I've enabled clean URLs on my Yii2 application, but I can't seem to get arguments to pass to the action.
I expect this:
localhost/app/web/a/b/c/d
To map to the following:
AController->acti...
Dayna asked 10/11, 2014 at 22:41
2
Solved
In Yii2, I cannot enable pretty url's.
My config:
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
],
My .htaccess:
RewriteEngine on
# if a directory or a ...
Compline asked 7/1, 2015 at 19:50
3
Solved
I need a rule for http://example.com/post/view/id/1 url that will be displayed like this http://example.com/post/post_title.
Instead of the id number i want to display the post name or title.
My ...
Uranus asked 3/12, 2011 at 9:56
1
Solved
I used the Yii::app()->request->getParam() so I can have a friendly url like /listings/amenities/1.
I got 3 actions on my controller that get the parameter $property_id = Yii::app()->requ...
Integer asked 9/9, 2014 at 12:57
1
© 2022 - 2024 — McMap. All rights reserved.