PHP Classes

File: view/melis-engine/melis-setup/setup-form.phtml

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis PHP CMS Engine   view/melis-engine/melis-setup/setup-form.phtml   Download  
File: view/melis-engine/melis-setup/setup-form.phtml
Role: Example script
Content type: text/plain
Description: Example script
Class: Melis PHP CMS Engine
Engine to manage the content page data
Author: By
Last change:
Date: 2 years ago
Size: 556 bytes
 

Contents

Class file image Download

<h3>MelisEngine Setup</h3>
<?php

foreach($form->getElements() as $element => $attributes) {
   
$el = $form->get((string) $element);
   
$label=$el->getLabel();
   
$attributes = $el->getAttributes();
    if(
$attributes && isset($attributes['text-required'])) {
       
$dataType = $this->translate($attributes['text-required']);
       
$form->get((string) $element)->setLabel($label.' '.$dataType.'');
    }
   
$value = $el->getValue();

}
echo
$this->form()->openTag($form);
echo
$this->melisFieldCollection($form);
echo
$this->form()->closeTag();