TemplatelistEditAction.class.php (462B)
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 }