Пример #1
0
 /**
  * @param Form $form
  */
 protected function configure(Form $form)
 {
     $form->addText('name', 'Name');
     $form->addSelect('file', 'File')->setItems($this->templateManager->getLayouts());
     $form->setCurrentGroup();
     $form->addSaveButton('Save');
 }
Пример #2
0
 protected function getScannedLayouts()
 {
     if ($this->_layouts === NULL) {
         $this->_layouts = array();
         foreach ($this->context->parameters['modules'] as $name => $item) {
             $this->_layouts[$name] = $this->templateManager->getLayouts($name);
         }
     }
     return $this->_layouts;
 }