title: Invalid Alias in Yii
body: <p>I've created a module and in this module I have an Action. This is my module structure:</p>
  
  <pre><code>modules  
    admin  
      controllers
        actions
  </code></pre>
  
  <p>In my main controller I have this code:</p>
  
  <pre><code>function actions()
  {
      return array(   
          'approveEntity' =&gt; array(
              'class' =&gt; 'application.modules.admin.controllers.actions.ApproveEntityAction'
          ),
  </code></pre>
  
  <p>But when I run the page <code>/pendingEntries/approveEntity</code></p>
  
  <p>I get this error message:</p>
  
  <blockquote>
    <p>Alias
    "application.modules.admin.controllers.actions.ApproveEntityAction" is
    invalid. Make sure it points to an existing PHP file and the file is
    readable.</p>
  </blockquote>
  
  <p>What is the correct "path" for my <code>ApproveEntityAction.php</code> file?</p>
  
  <p><strong>update</strong><br>
  We are importing this:</p>
  
  <pre><code>// autoloading model and component classes
  'import'=&gt;array(
      'application.models.*',
      'application.components.*',
      'application.controllers.plugins.*',
      'application.components.widgets.*',
      'application.helpers.*',
      'application.forms.*',
  </code></pre>