title: yii Design block for each user
body: <p>I use with YII platform including adminLTE design template and I want each user to have a different menu layouts file but if the guest user will bring a default file
  I tried to write like this and it does not load any file</p>
  <pre><code>&lt;?php $this-&gt;beginBlock('left_menu'); ?&gt;
  &lt;?php if(Yii::$app-&gt;user-&gt;isGuest){$this-&gt;renderFile('@app/views/layouts/menu.php');}else{$this-&gt;renderFile('@app/views/layouts/'.Yii::$app-&gt;user-&gt;identity-&gt;project.'.php');} ?&gt;
  &lt;?php $this-&gt;endBlock(); ?&gt;
  </code></pre>