After using amnah authentication the backend crud of user module shows the Yii2 User Module not the User CRUD -


we've been working on project yii2 advanced app, custom bootstrap template. i've generated crud using gii. other cruds work fine. user crud displays yii2 user module not crud.

i've gone through amnah's complete documentations , couldn't find solutions in other places either. tried yii2 documentations , wasn't either.

this backend config

<?php $params = array_merge( require(__dir__ . '/../../common/config/params.php'), require(__dir__ . '/../../common/config/params-local.php'), require(__dir__ . '/params.php'), require(__dir__ . '/params-local.php') );  use \yii\web\request; $baseurl = str_replace('/frontend/web', '', (new request)->getbaseurl());  return [ 'id' => 'app-backend', 'basepath' => dirname(__dir__), 'controllernamespace' => 'backend\controllers', 'defaultroute' => 'sahasa/index', 'bootstrap' => ['log'], 'components' => [     'urlmanager' => [         'class' => 'yii\web\urlmanager',         // disable index.php         'showscriptname' => false,         // disable r= routes         'enableprettyurl' => true,         'rules' => array(                 '<controller:\w+>/<id:\d+>' => '<controller>/view',                 '<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',                 '<controller:\w+>/<action:\w+>' => '<controller>/<action>',         ),     ],     'request' => [         'baseurl' => $baseurl,     ],     'user' => [         'class' => 'amnah\yii2\user\components\user',     ],     // 'user' => [     //     'identityclass' => 'common\models\user',     //     'enableautologin' => true,     // ],     'log' => [         'tracelevel' => yii_debug ? 3 : 0,         'targets' => [             [                 'class' => 'yii\log\filetarget',                 'levels' => ['error', 'warning'],             ],         ],     ],     'errorhandler' => [         'erroraction' => 'site/error',     ], ], 'params' => $params, 'modules' => [     'user' => [         'class' => 'amnah\yii2\user\module',         // set custom module properties here ...     ],     'debug' => [         'class' => 'yii\debug\module',     ], ], ]; 

this when goto localhost/app/backend/web/index.php?r=user

enter image description here

i want display crud similar this

enter image description here

i'm stuck there. without crud it'll difficult manage users. appreciated. in advance.

i think need redefine controller too. need new controller derived form original controller correctly addressing new crud element.

i suppose controller in backend , named user otherwise change following example (part of config/main.php):

'user' => [     ...           'controllermap' => [         'user'  => 'backend\controllers\user',      ], ], 

Comments