• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Extend actionSave()

Daniel Hood

Well-known member
#1
I'm working on an add on that requires changing a type of field, I've altered the table, I've extended the datawriter, the model, etc... My problem is the controller. I don't want to over-write the entire function obviously but I need change the type of input expected. I can't do it with the typical:

Code:
$parent = parent::actionSave();
$var = $parent->var;
.....
.....
Because parent:: does stuff (some of which I need to modify) before returning. Any ideas?
 

Jeremy

Well-known member
#5
I would try to do it within the preSave as KenSmith has suggested. Running queries in your datawriter that don't relate to the data you are modifying is general bad practice.
 
Top