title: Yii2 Dynamic Maintenance Mode
body: <p>I've used the following library in my Yii2 project: <a href="https://github.com/brussens/yii2-maintenance-mode" rel="nofollow">Click here</a></p>
  
  <p>I've set it up and tested it and it works great. But now I want to make it dynamic as in if an admin clicks on a toggle switch the website should go into maintenance mode. To make it happen all I need to do is to make the enabled variable true which is used in Maintenance class of this library.</p>
  
  <p>But my question is how can I link my toggle switch to that variable.</p>
  
  <p>Thanks in advance!</p>