I dont use upgrade for the RM, i just edit. With every edit i want to have an update for
$resource->last_update = time();
I have solved this by changing the code itself. Now i try to to do an add-on for this.
I have extended
namespace XFRM\Pub\Controller;
class ResourceItem
public function actionEdit(ParameterBag $params)
Now i dont know what to do.
1. I should call the parent.
2. Then i need something like:
is saved? ($editor->save();
or
is redirected? ( return $this->redirect($this->buildLink('resources', $resource, [ ...)
or should i replace the whole method with my own?
$resource->last_update = time();
I have solved this by changing the code itself. Now i try to to do an add-on for this.
I have extended
namespace XFRM\Pub\Controller;
class ResourceItem
public function actionEdit(ParameterBag $params)
Now i dont know what to do.
1. I should call the parent.
2. Then i need something like:
is saved? ($editor->save();
or
is redirected? ( return $this->redirect($this->buildLink('resources', $resource, [ ...)
or should i replace the whole method with my own?