Wiki articles tagged with "Scenarios"

Showing 1-4 of 4 items.

Understanding Scenarios

Created 10 years ago by Luke Jurgs, updated 8 years ago by Luke Jurgs.

Scenarios are an extremely useful tool for separating validation tasks on any class you use derived from CModel. In this tutorial we will use CActiveRecord.

23 0
39 followers
Viewed: 165 935 times
Version: 1.1
Category: Tutorials

Activate captcha after unsuccessful login attempts

Created 8 years ago by Kostas Apazidis (KonApaz), updated 7 years ago by Rohit Suthar.

Like gmail, if you have tree or more unsuccessful login attemps a captcha appears

4 1
15 followers
Viewed: 32 473 times
Version: 1.1
Category: How-tos

Building a search GET request with scenarios ; calling a SearchModel from URLs...

Created 6 years ago by Louis Gac, updated 6 years ago by Louis Gac.

Search Models are a very elegant and powerful way to build an Active Data Provider. If you use them a lot, you'll quickly need to use scenarios, which will lead you to a very DRY Controller code.

0 0
2 followers
Viewed: 18 195 times
Version: 2.0
Category: Tips

"safe" and "unsafe" Model validators (massive assignments)

Created 8 years ago by Kostas Apazidis (KonApaz), updated 5 years ago by brianvu.

Ok, it is a little bit difficult to full understanding the unsafe validator.

2 2
7 followers
Viewed: 31 834 times
Version: 1.1
Category: How-tos