File modules/cms/action/templatelist/TemplatelistEditAction.class.php

Last commit: Thu Nov 19 12:36:44 2020 +0100	Jan Dankert	Fix: nextSubAction() is depracated and should not be used.
1 <?php 2 namespace cms\action\templatelist; 3 use cms\action\Method; 4 use cms\action\TemplatelistAction; 5 6 class TemplatelistEditAction extends TemplatelistAction implements Method { 7 8 9 public function view() { 10 $list = array(); 11 12 foreach( $this->project->getTemplates() as $id=>$name ) 13 { 14 $list[$id] = array(); 15 $list[$id]['name'] = $name; 16 $list[$id]['id' ] = $id; 17 } 18 19 $this->setTemplateVar('templates',$list); 20 } 21 22 23 public function post() { 24 } 25 }
Download modules/cms/action/templatelist/TemplatelistEditAction.class.php
History Thu, 19 Nov 2020 12:36:44 +0100 Jan Dankert Fix: nextSubAction() is depracated and should not be used. Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.