openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 24d7b5df322053ab6b2ed5e65caea496553396f7
parent a5560c2d28b695bb670df7e3f25b28083662a255
Author: dankert <openrat@jandankert.de>
Date:   Fri, 11 Mar 2022 20:28:18 +0100

Using the global "add" method to add new template elements.

Diffstat:
Amodules/cms/action/template/TemplateAddAction.class.php | 26++++++++++++++++++++++++++
1 file changed, 26 insertions(+), 0 deletions(-)

diff --git a/modules/cms/action/template/TemplateAddAction.class.php b/modules/cms/action/template/TemplateAddAction.class.php @@ -0,0 +1,26 @@ +<?php +namespace cms\action\template; +use cms\action\Action; +use cms\action\Method; +use cms\action\RequestParams; +use cms\action\TemplateAction; +use cms\model\Element; +use cms\model\Project; +use cms\model\Template; +use language\Messages; + + +class TemplateAddAction extends TemplateAddelAction { + public function view() { + + $this->request->redirectActionAndMethod('template','addel'); + parent::view(); + } + + + public function post() { + + $this->request->redirectActionAndMethod('template','addel'); + parent::post(); + } +}