public function executeUpdate($templatePath, $input)
{
$input = array_except($input, ['_method', '_token']);
if ($this->TemplatesManager->updateTemplate($input)) {
return $this->Redirect->route('dvs-templates')->with('message', 'Template updated succesfully');
}
return $this->Redirect->route('dvs-templates-edit', $templatePath)->withErrors($this->TemplatesManager->errors)->with('message', 'There were validation errors');
}