title: Yii custom Widget, loader error
body: <p>Please, help me with this problem (I am using Yii, Xampp on a Windows localhost):</p>
  
  <p>So... I've created a new widget in "protected\components\views\Magus.php".</p>
  
  <pre><code> &lt;?php
     class Magus extends CWidget {
  
     //////////////////////////////
    public function run()
    {
      echo '&lt;p style="color:blue; "&gt;Trallala :) !&lt;/p&gt;'; // do something.
    }
      //////////////////////////////
  
   } //end class
  </code></pre>
  
  <p>It's used here ("protected/views/layouts/main.php"):</p>
  
  <pre><code> &lt;?php
     $this-&gt;widget('/views/Magus');
   ?&gt;
  </code></pre>
  
  <p>And this causes a loader (?) error:</p>
  
  <pre><code>Fatal error: include() [&lt;a href='function.include'&gt;function.include&lt;/a&gt;]: 
  Cannot redeclare class magus in C:\xampp\htdocs\yii\framework\YiiBase.php on line 421
  </code></pre>
  
  <p>But the error doesn't happen, if the widget file is placed directly in "protected\components". What is the reason of that error and how to correct it ? Thank you in advance !</p>