Jump to content
Larry Ullman's Book Forums

Araquach

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Araquach

  • Rank
    Newbie
  1. I've extended the CActiveRecord class with a beforeSave() function to set the current logged in users ID upon submitting a form. This works great throughout the majority of the application, but there are circumstances where the administrator selects a User from a drop down list. What's the best approach to prevent/overide the beforeSave() in this instance? Many thanks in advance.
  2. Thanks for your help guys, i'll give it a go. p.s. the anticipation for the new book is killing me Larry!!
  3. I'm building a customer feedback form where upon submission a voucher is sent via SMS text message. I'm using the YiiMail extension to handle sending the text message. It's all working well. My only issue arrises when the applicant breaks up their mobile number with spaces when inputting it, as this doesn't validate in Swift mailer. What is the best approach? Do I need to create a new validation rule or does Yii provide one for this scenario? Or would you recommend creating a function to strip the spaces out after validation? If that's the case, how would I go about implementing this (I stil
×
×
  • Create New...