public function update($id, $data) { $view = $this->get($id); $coder = new \Cms\Library\Helpers\Coder\ViewsCoder(); $coder->deleteView($view); return parent::update($id, $data); }
public function onDelete($public_view) { $coder = new \Cms\Library\Helpers\Coder\ViewsCoder(); $coder->deleteView($public_view); }