Exemple #1
0
 /**
  * (non-PHPdoc)
  * @see \Simplify\Renderable::getLayoutsPath()
  */
 public function getLayoutsPath()
 {
     $path = (array) parent::getLayoutsPath();
     $path[] = AMP_DIR . '/templates/layouts';
     $path[] = FORM_DIR . '/templates';
     return $path;
 }
Exemple #2
0
 /**
  * (non-PHPdoc)
  * @see Renderable::getTemplateFilename()
  */
 public function getTemplateFilename()
 {
     if (!empty($this->style)) {
         return $this->style;
     } elseif (empty($this->template)) {
         $this->template = 'form_element_' . strtolower(join('', array_slice(explode('\\', get_class($this)), -1)));
     }
     return parent::getTemplateFilename();
 }