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