Jump to content
Larry Ullman's Book Forums

Setting User Through Beforesave


Recommended Posts

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.

Link to comment
Share on other sites


  • Create New...