Yii Framework Forum: Validation Rule To Validate Against Different Model Attribute - Yii Framework Forum

Jump to content

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

Validation Rule To Validate Against Different Model Attribute Rate Topic: -----

#1 User is offline   Muneeb 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 10-May 13

Posted 10 May 2013 - 01:14 PM

Hi,


I have a model 'Isshortlisted' which have attributes appoint_date and appoint_time. Also i have a model 'Job' which have attributes start_appoint_date, end_appoint_date, start_appoint_time, end_appoint_time. I want someone like admin to set the attributes of 'Isshortlisted' (appoint_date, appoint_time) in between the values given in the attributes of job model. I have been searching for custom validation functions to define a validation rule in the 'Isshortlisted' model so that admin can't give a wrong value but have found nothing useful. Please help me in this regard...
0

#2 User is offline   Antonio Ramirez 

  • Elite Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 1,448
  • Joined: 04-October 10

Posted 10 May 2013 - 02:04 PM

Why don you create your own? http://www.yiiframew...alidation-rule/
┬┐How long would it take for you to understand that you own nothing in this world?

www.ramirezcobos.com
www.2amigos.us
www.github.com/tonydspaniard
www.github.com/2amigos


Posted Image
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