public function edit($model = null, $id = 0) { is_array($model) || ($model = $this->getModel($model)); $templateFile = $this->getAddonTemplate($model['template_edit']); parent::common_edit($model, $id, $templateFile); }