yii Unique Validator

 /**  
       * @return array validation rules for model attributes.  
       */  
      public function rules()  
      {  
           // NOTE: you should only define rules for those attributes that  
           // will receive user inputs.  
           return array(  
                ........  
             array('username','unique'),  
                ........  
           );  
      }  

Comments

Popular posts from this blog

Data Flow Diagram (DFD)

VERIFIKASI SUARA MENGGUNAKAN METODE MFCC DAN DTW MENGGUNAKAN METODE MFCC DAN DTW (BAB II TINJAUAN PUSTAKA)

flexigrid + php with add and edit button