yii2 redirect to login page - premier bet login

$800.00

I found that beforeAction() can be used to hold the code to check if the user is not logged in, and then redirect the user to the login page with something like this: if(Yii::app()-user-isGuest) $this-redirect(Yii::app()-getModule(‘user’)-loginUrl); But to have it working in the whole site I need to put this code in every beforeAction . login it pln . wahyupoker login

Add To Cart