title: Ajax call is not working, "404 not found error" showing in Yii Framework
body: <p>I've crated simple ajax call function in yii framwork but its not working, its giving 404 not found error message in console.  <br> 
  Ajax function in main.php page <br></p>
  
  <pre><code>$.ajax({
            url: 'actionSendSms',
            type: 'GET',
            data: {user_id :array_id[i]},
            success: function(response){                                    
              console.log(response);                                 
            }
          });
  </code></pre>
  
  <p>"actionSendSms" in controller:<br></p>
  
  <pre><code> public function actionSendSms(){
           return '1';   
          }
  </code></pre>
  
  <p>accessRules() function in controller: <br></p>
  
  <pre><code>public function accessRules()
      {
          return array(
              array('allow',  // allow all users to perform 'index' and 'view' actions
                  'actions'=&gt;array('index','view','actionSendSms'),
                  'users'=&gt;array('*'),
              ),
              array('allow', // allow authenticated user to perform 'create' and 'update' actions
                  'actions'=&gt;array('create','update','actionSendSms'),
                  'users'=&gt;array('@'),
              ),
              array('allow', // allow admin user to perform 'admin' and 'delete' actions
                  'actions'=&gt;array('admin','delete','actionSendSms'),
                  'users'=&gt;array('admin'),
              ),
              array('deny',  // deny all users
                  'users'=&gt;array('*'),
              ),
          );
      }
  </code></pre>
  
  <p>The error message from console is:<br></p>
  
  <pre><code>GET http://www.domain.com/admin/index.php/sendSms/actionSendSms?user_id=32 404 (Not Found)
  </code></pre>