Form_Field_Hidden::render PHP Method

render() public method

public render ( )
    public function render()
    {
        if ($this->owner == $this->form) {
            $this->form->template_chunks['form']->appendHTML('Content', $this->getInput());
        } else {
            $this->output($this->getInput());
        }
    }

Usage Example

Beispiel #1
0
 function render()
 {
     $url = $this->api->url(null, array($this->name => 'ajax'));
     if ($this->value) {
         // on add new and inserting allow empty start value
         $this->model->tryLoad($this->value);
         $name = $this->model->get($this->title_field);
         $this->other_field->set($name);
     }
     $this->other_field->js(true)->_load('autocomplete_univ6')->_css('autocomplete')->univ()->myautocomplete($url, $this, $this->options, $this->id_field, $this->title_field, $this->send_other_fields);
     return parent::render();
 }
All Usage Examples Of Form_Field_Hidden::render
Form_Field_Hidden