TemplatelistShowAction.class.php (468B)
1 <?php 2 namespace cms\action\templatelist; 3 use cms\action\Method; 4 use cms\action\TemplatelistAction; 5 6 class TemplatelistShowAction extends TemplatelistAction implements Method { 7 public function view() { 8 $list = array(); 9 10 foreach( $this->project->getTemplates() as $id=>$name ) 11 { 12 $list[$id] = array(); 13 $list[$id]['name'] = $name; 14 $list[$id]['id' ] = $id; 15 } 16 17 $this->setTemplateVar('templates',$list); 18 } 19 20 21 public function post() { 22 } 23 }