render() public method

public render ( )
コード例 #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();
 }
コード例 #2
0
ファイル: Basic.php プロジェクト: xepan/xepan
 function render()
 {
     $l = $this->api->locate('addons', __NAMESPACE__, 'location');
     $this->api->pathfinder->addLocation($this->api->locate('addons', __NAMESPACE__), array('template' => 'templates', 'css' => 'templates/css', 'js' => 'js'))->setParent($l);
     $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();
 }