Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to use form validations in yii?



How to use form validations in yii?..

Answer / Anoop Kumar Tiwari

Form validations can be implemented in Yii using ActiveForm and rules. Here's a basic example:nn1. Create a new instance of the CActiveForm class.n2. Specify rules for each field in your model, such as required, email, etc.n3. Render the form with the helper methods provided by CActiveForm.n4. Validate the form using the validate() method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Yii PHP Framework Interview Questions

What is yii framework?

1 Answers  


How to get current controller id in yii ?

1 Answers  


Can we deploy applications to different servers?

1 Answers  


What is the naming convention in yii framework?

1 Answers  


Explain the yii versions?

1 Answers  


Why yii framework is faster?

1 Answers  


How to get current controller name?

1 Answers  


What are the type of models available in yii framework ?

1 Answers  


How to get current action name?

1 Answers  


What is gii in yii 2.0 and why it is used?

1 Answers  


How to generate crud code?

1 Answers  


How we can remove index.php from url in yii?

1 Answers  


Categories