File modules/cms/action/template/TemplateRemoveAction.class.php
Last commit: Thu Nov 19 14:49:58 2020 +0100 Jan Dankert Fix: Action::addNotice() is replaced by Action::addNoticeFor()
1 <?php 2 namespace cms\action\template; 3 use cms\action\Action; 4 use cms\action\Method; 5 use cms\action\TemplateAction; 6 use language\Messages; 7 8 9 class TemplateRemoveAction extends TemplateAction implements Method { 10 public function view() { 11 $this->setTemplateVar('name',$this->template->name); 12 } 13 public function post() { 14 $this->template->delete(); 15 $this->addNoticeFor($this->template,Messages::DELETED); 16 } 17 }
Downloadmodules/cms/action/template/TemplateRemoveAction.class.php
History Thu, 19 Nov 2020 14:49:58 +0100 Jan Dankert Fix: Action::addNotice() is replaced by Action::addNoticeFor() Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.