public function view($call_parent = TRUE) { $this->addElementToHead(new XMLElement('script', "Symphony.Context.add('elasticsearch', " . json_encode(Symphony::Configuration()->get('elasticsearch')) . ")", array('type' => 'text/javascript')), 99); if ($call_parent) { parent::view(); } }
public function view() { $this->Contents = new XMLElement('div', NULL, array('id' => 'contents')); $this->Form->setAttribute('style', 'display:none;'); return parent::view(); }