public function render(){ //$out = ''; $prefix = $this->get('name'); if(!$this->get('title')) $this->set('title', 'Meta Information (SEO)'); foreach($this->_getMetas() as $name => $dat){ // The options will start as the array of data. $opts = $dat; // Don't need this guy unset($opts['type']); // The name gets updated slightly $opts['name'] = $prefix . '[' . $name . ']'; if(!$this->getElement($opts['name'])){ $this->addElement( $dat['type'], $opts ); } /* $el = FormElement::Factory($dat['type'], array( 'name' => ($prefix . '[' . $name . ']'), 'title' => $dat['title'], 'description' => $dat['description'], 'value' => $dat['value'] )); $out .= $el->render(); */ } return parent::render(); }