예제 #1
0
 public function render(ElementInterface $element)
 {
     if ($element->getOption('static')) {
         return $this->getView()->formElementStatic($element);
     }
     return parent::render($element);
 }
예제 #2
0
 /**
  * Date
  *
  * @param ElementInterface|null $element
  * @return string|Helper\FormInput
  */
 public function date(ElementInterface $element = null)
 {
     $helper = new Helper\FormDate();
     return $helper->__invoke($element);
 }