Yii Framework Forum: how define time validation in models's rules function - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

how define time validation in models's rules function time validation in model

#1 User is offline   FARAZFRANK 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 23-January 12

Posted 23 February 2012 - 07:54 AM

i have a model appointment, want to define rules function in model to validate these conditions before submit

start_time < end_time
end_time > start_time
start_time != end_time


Appointment-table has following fields
id(PK), title, client_name, app_date, start_time, end_time, status

Attached File(s)

  • Attached File  ap.JPG (36.03K)
    Number of downloads: 71

0

#2 User is offline   Pravin Gajera 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 137
  • Joined: 25-October 11
  • Location:India

Posted 26 February 2012 - 11:43 PM

Hi


Than you have to use Jquery validations it's provide you instant validation.

like user will write e-id than it's check correct or not

if not than give error message.

Thanks
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users