Q
Q
qrolf2017-09-08 13:21:30
Yii
qrolf, 2017-09-08 13:21:30

How is registration/authorization implemented in Yii2?

Good day to all. The question is abstract.
I started learning yii2, before that I learned to write only in pure php. Actually, the question is, according to what prince does registration and / or authorization work on Yii2?
For example, in pure php, when registering, an SQL request is made and the user is entered into the database. During authorization, this entered data is checked for a match, and if it matches, then we are logged in.
How is it all with Yii2? I saw a bunch of examples of how to do it in terms of code, but I did not find any interpretations, the principle of operation.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dilik Pulatov, 2017-09-08
@dilikpulatov

in Yii2 everything is done for us , it
remains only to use them
in detail here or here
or a video tutorial

A
AlikDex, 2017-09-08
@AlikDex

in Yii2, authorization data is written to the session. Requests to the database will only be made if user data is needed (for example, display a nickname).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question