title: yii framework's CRUD generator (gii) shows error message : "'Voucher' must extend from CActiveRecord."
body: <p>I am trying to generate CRUD for my vouchers table using gii,I follow simple steps through which I always generate CRUD but this time with "vouchers" tables its showing some unexpected error message</p>
  
  <blockquote>
    <p>'Voucher' must extend from CActiveRecord.</p>
  </blockquote>
  
  <p>Below is how I am trying to generate the CRUD.</p>
  
  <p><strong>Step 1: Model Generation:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/rNwz4.png" alt="Model Generation"></p>
  
  <p>Her is generated voucher model located in root/protected/models/Voucher.php</p>
  
  <p><img src="https://i.stack.imgur.com/5KeZe.png" alt="Voucher.php"></p>
  
  <p><strong>Step 2: CRUD Generation:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/nZLAv.png" alt="CRUD generation"></p>
  
  <p><strong>Workaround:</strong></p>
  
  <p>I tried to generate CRUD with path alias for model class and it works, have a look at screen below</p>
  
  <p><img src="https://i.stack.imgur.com/c8JSs.png" alt="workaround"></p>
  
  <p>About workaround solved the problem but I wonder why CRUD generator is not generating the CRUD as normally it does with all other model names. I noticed that it shows this error only for "Voucher" model and for this specific model I have to go for above workaround.</p>