title: Yii 2 Quicker way to access controller from view
body: <p>So in Yii 1, in the view file you could access the Controller's properties / actions using <code>$this-&gt;action()</code> or <code>$this-&gt;property</code>.</p>
  
  <p>In Yii 2, the only way I can see this possible is using <code>Yii::$app-&gt;controller-&gt;property</code> or <code>Yii::$app-&gt;controller-&gt;action()</code>. I am one for not wanting to write more code than is necessary, so I was wondering if there's a shorter method of doing it.</p>