A
A
Alexey2019-12-22 23:47:07
Yii
Alexey, 2019-12-22 23:47:07

How to display a 403 error?

Hello! How can I display a 403 error?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Habr, 2019-12-22
@CrabsC

throw new yii\web\HttpException(403, 'Доступ запрещен');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question