R
R
Ruslan2017-08-22 20:54:06
Yii
Ruslan, 2017-08-22 20:54:06

How to restrict access to the module to the unregistered?

Good day. I am using yii2 advanced. I have a profile module in the frontend folder where only registered users can access. Can you please tell me how to properly restrict access to the entire module and transfer it to the login form when the user is not registered? Thank you all in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2017-08-22
@slo_nik

Good evening.
The first thing I can recommend is to read the documentation.
1) One
2) Two
Well, reading a blog, one of many...
1) One
2) Two
3) Three

M
Maxim Timofeev, 2017-08-24
@webinar

In module controllers, as well as in non-module controllers. The same slippers only in profile

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question