title: PHP YII inject static HTML file inside view
body: <p>a newbie with php and with yii framework. 
  Iam mixing YII with angular js on frontend and for that i need to inject a static html file (angular template) inside the YII view. So that they can directly be used from the $templateCache using the id.</p>
  
  <p>Things i have tried are<br>
  1. <code>$this-&gt;render();</code> //inside view<br>
  2. <code>$this-&gt;renderFile();</code> //inside view<br></p>
  
  <p>So basically my code is like this </p>
  
  <pre><code>&lt;div class="container container-fluid" ng-app="shopsApp"&gt;
  &lt;!--angular templates--&gt;
  &lt;script type="text/ng-template" id="shop-create.html"&gt;
    &lt;?php $this-&gt;renderFile('/_partials/shop-create.html.php') ?&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>The error that im getting is </p>
  
  <pre><code>require(/_partials/shop-create.html.php): failed to open stream: No such
  file or directory
  (C:\xampp\htdocs\freshmonk\yii\framework\web\CBaseController.php:130)
  </code></pre>