Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- public function rules()
- {
- return array(
- array(
- 'end_time',
- 'compare',
- 'compareAttribute'=>'start_time',
- 'operator'=>'>',
- 'on'=>'insert',
- 'message'=>'Ending time should be greater than starting time'
- ),
- );
- }
Add Comment
Please, Sign In to add comment