Our Blog
Yii2 Pretty URL / SEO Friendly URL – Advanced Template
31
Oct

Yii2 Pretty URL / SEO Friendly URL – Advanced Template

By Default YII Advanced url structures for frontend and backend are: yii/frontend/web/index.php?r=controller/action yii/backend/web/index.php?r=controller/action To make url user and SEO friendly we would like to change frontend url to: yii/controller/action And backend url to: Yii/admin/controller/action For this we need to make following changes: A. Add this in frontend/config/main.php and backend/config/main.php in components array: 'urlManager' => [ … Continue reading "Yii2 Pretty URL / SEO Friendly URL – Advanced Template"

read morered-right-arrow
Change default  controller  and default login in yii2 advanced template
24
Oct

Change default controller and default login in yii2 advanced template

By default yii2 advanced template redirects to url: site/login, when user is not login, to replace it with your own default login url: A. Add below code on backend main/config.php user component: 'components' => [ 'user' => [ 'identityClass' => 'common\models\User', 'enableAutoLogin' => true, 'loginUrl' => [ 'yourcontroller/youraction' ], ], B. yii2 advanced template defaut … Continue reading "Change default controller and default login in yii2 advanced template"

read morered-right-arrow
How To Generate SEO Friendly URL in Yii Framework
19
Sep

How To Generate SEO Friendly URL in Yii Framework

We can configure the URL in Yii php Framework which helps to generate SEO friendly url. We can do it by using urlManager in our yii application. In this tutorial we are going to use Yii2.0 For Basic Template Remove web/index.php and enable pretty By Default YII Basic url structure is yiibasic/web/index.php?r=controller/action So to make … Continue reading "How To Generate SEO Friendly URL in Yii Framework"

read morered-right-arrow

our global clients