title: Yii Rights doesn't affect User, why?
body: <p>I have set up basic skeleton Yii app, with Rights and User extensions. Rights works fine, except for User. I'm using NetBeans 8.0.1.</p>
  
  <p>I have put this code into SiteController and UserController as in the instructions:</p>
  
  <pre><code>public function filters() {
      return array(
          'rights',
      );
  }
  </code></pre>
  
  <p>I have noticed a strange thing. Here:</p>
  
  <pre><code>class SiteController extends Controller {
  </code></pre>
  
  <p>when I was going over the word <code>Controller</code> with the mouse cursor holding CTRL, in a pop-up window NetBeans showed where it was pointing to. It was pointing to the Controller in the application directory. This is what I expected, and I thought it works because Controller extends RController and so on.</p>
  
  <p>For UserController, it was not working.</p>
  
  <pre><code>class UserController extends Controller {
  </code></pre>
  
  <p>Now when I go over the word <code>Controller</code> with the mouse cursor holding CTRL, in a pop-up window NetBeans showes that it is pointing to the Controller not in the application directory but to the Controller in the <strong>framework</strong> directory. I thought this is why it's not working. But since I clicked on it, and jumped to this file, NetBeans shows the same framework Controller for SiteController also, but it still works! So I don't know now if it's only a NetBeans bug or what. But no matter what, what I only care for for is that Rights works for UserController also.</p>
  
  <p>How can I define my UserController to point to the Controller in the application, and not in the framework. But maybe it points to the right place, it's just NetBeans what shows it incorrectly. But if not this is the problem, than what?</p>
  
  <p>UPDATE:</p>
  
  <p>I have noticed a thing: somewhere Rights works for User, e.g. when I see this in the address bar:</p>
  
  <pre><code>project/user/user/view/id/1
  </code></pre>
  
  <p>it seems to me as it would be user module, then user class, action etc.
  But when it's not working, I see only:</p>
  
  <pre><code>project/user
  </code></pre>
  
  <p>is it not using class user? Or what happens here? What controller is in use? None?!</p>