In common\model\LoginForm.php I have declared a variable with the statement:
public $nhs
In rules() I have declared this as boolean & required. This is presented to the user in frontend\views\site\login.php at login as radio buttons which are either true or false.
I need to access the value of this variable set by the user after the user logged in, elsewhere in the process, specifically in:
frontend\views\layouts\main.php
In order to control the options presented to the user. I am relatively new to Yii2 and am struggling to find a solution.