views:

85

answers:

1

I want set error validation to input field manually in controller example:

  if ($remainTime < 30) {
      ..... set error validation in here (error: limitTime ), ( error is not in model )
  }

other question: i want to ask : bindModel ( in this case , I use bindModel in Behaviors ) 'll cause loss of relationship with other model but is bindModel cause loss of $var validate,too ?

A: 

Probably you are looking for something like this

Nik
no, i want set error validation , in this case, $validate == null
meotimdihia
Do you want to invalidate a field, or just to show that the form in general is invalid?
Nik