Form_Field_Hidden::render PHP 메소드

render() 공개 메소드

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

예제 #1
0
파일: Basic.php 프로젝트: xepan/base
 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