title: php yii 2.0 new action in controller page not found 404
body: <p>I'm using Yii 2.0 basic version and I need some help.
  I created one ajax function like this:</p>
  
  <pre><code>function eliminarColaborador(id) {
      $.ajax({
          type: "GET",
          async: false,
          url: "&lt;?= urldecode(Url::toRoute(['colaborador/ajaxEliminarColaborador'])) ?&gt;",
          dataType: 'json',
          data: {
              'id': id
          },
          complete: function ()
          {
          },
          success: function (data) {
              if (data !== null)
              {
                  // SUCCESS
              }
              else
              {
                  // ERROR
              }
  
          }
      });
  }
  </code></pre>
  
  <p>My action in controller:</p>
  
  <pre><code>public function actionAjaxEliminarColaborador($id) {
          if (Yii::$app-&gt;request-&gt;isAjax) {
              $continuar = false;
  
              if(isset($id) &amp;&amp; $id &gt; 0) {                
                  var_dump($model); die;
  
                  $continuar = true;
              }
  
  
              echo CJSON::encode(array('continuar'=&gt;$continuar));
              Yii::$app-&gt;end();
          }
      }
  </code></pre>
  
  <p>I'm getting this erro in firebug: Not Found (#404): Page not found.</p>
  
  <p>I tried everything, but i can't figure out what's the problem.
  If I change ajax url to <strong>urldecode(Url::toRoute(['colaborador/delete']))</strong> the error is gone and all works just fine.</p>
  
  <p>Maybe I need to declare in ColaboradorController my new action <strong>ajaxEliminarColaborador</strong>, but I don't know how.</p>
  
  <p>What is wrong?</p>