Cjuiautocomplete Filed Showing Error

I am just newbie to the yii framework. Currently I have two tables one for sales and other for stores Sales table is looking like this






store table is looking like this







Now in sales view form(_form.php) I have rendered both sales and stores. In sales controller the code for action create is like this

 public function actionCreate()


    $model=new Sales;

    $stores = new Stores;

    // Uncomment the following line if AJAX validation is needed

    // $this->performAjaxValidation($model);




      $stores->attributes = $_POST['Stores'];

      $valid = $model->validate();

      $valid = $stores->validate();




        $model->store_id = $stores->getPrimaryKey();







      'stores' => $stores,



To get all the stores name in dropdown list I made my code like this

<div class="row">

    <?php echo $form->labelEx($stores,'store_name'); ?>

    <?php echo $form->dropDownList($stores,'store_name', CHtml::listData(Stores::model()->findAll(), 'store_name', 'store_name'), array('empty'=>'--Select--')) ?>

    <?php echo $form->error($stores,'store_name'); ?>


But here I want the cjuiautocomplete field so that when someone will press any key then it will start to show the suggesions stores name. For that I just came through this link

and just like the docs I made the EAutoCompleteAction.php under protected/extension directory Then I just made my controller code like this in sales controller

public function actions()


      return array(



          'model'=>'Stores', //My model's class name

          'attribute'=>'store_name', //The attribute of the model i will search




and in view file of sales(_form.php) I made the code like this

<div class="row">

    <?php echo $form->labelEx($stores,'store_name'); ?>


  $this->widget('zii.widgets.jui.CJuiAutoComplete', array(












  )); ?>

After all when I am doing the search by keywords it is showing 404 error in console panel of firebug. The requested search url in firebug was like this (ads was my search query in store name field)