Wiki

Articles tagged with "scenarios", sorted by ratingX
Displaying 1-4 of 4 result(s).

Understanding Scenarios

Created 5 years ago by Luke JurgsTutorials12 comments – viewed 128,573 times – ( +31 / -1 ) – version 1.1
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.

Activate captcha after unsuccessful login attempts

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos22 comments – viewed 23,513 times – ( +13 / -3 ) – version 1.1
Like gmail, if you have tree or more unsuccessful login attemps a captcha appears

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

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos4 comments – viewed 21,911 times – ( +4 / -7 ) – version 1.1
Ok, it is a little bit difficult to full understanding the unsafe validator.

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

Created 2 years ago by Louis GacTips0 comments – viewed 8,645 times – ( +1 / -1 ) – version 2.0
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.
tags: search, get, Scenarios