Comments (2)
I try to answer
Have you try change your login view in folder views/site/login?
Or you mean something else?
from yii2-admin.
Great!
Currently, I have my own theme configured in components > view >theme > pathMap > @app/view
I want to change the view which appears in url /admin/user/login this use @vender/mdmsoft/yii2-admin/views/user/login
If I try /site/login the error "Incorrect username password" appears.
How can I use my own view or make this working with the yii2-admin module? :-/
A further questition: Is it possible to make a difference in the used layout file between guests and users?
Update, if anybody helps to change default view:
'on beforeRequest' => function ($event) { Yii::$app->layout = Yii::$app->user->isGuest ? '@app/themes/adminlte3/layouts/main-login.php' : // or just use 'GuestUser' and '@app/themes/adminlte3/layouts/layouts/main.php'; // 'RegisteredUser' since the path // and the extension are used by // default },
but problem 'incorrect username password' still exist / I need to route the request to yii2-admin controller
from yii2-admin.
Related Issues (20)
- /admin get Class 'app\models\UserSearch' not found
- Error: Call to undefined method app\models\User::setInstance()
- is it possible to add route with parameter ?
- Access and Assignment issue with REST API
- bad request 400
- Problem With Routing URL HOT 1
- License inconsistent
- Support untuk PHP 8.1 HOT 1
- Can not instantiate when controller file is abstract or interface class
- Access control on master HOT 2
- Syntax error on file mdmsoft/yii2-admin/components/AccessControl.php HOT 3
- Menu with subitems didn't show up on Bootstrap5 HOT 1
- I keep getting errors when creating roles and keeping rules ampty HOT 1
- how to filter menu but using native navbar ?
- Clean Invalid routes (Permissions) HOT 1
- how about change the usernameField expression as a Column expression HOT 1
- can not auth HOT 1
- Error Class "yii\bootstrap\ActiveForm" not found in view mdmsoft\yii2-admin\views\user\login.php HOT 1
- migration on web HOT 1
- 'Cannot use yii\base\Object as Object because 'Object' is a special class name' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-admin.