public function modelRender()
    {
        if ($this->model instanceof \atk4\data\Model) {
            if ($this->controller instanceof Controller_ADView) {
                return;
            }
            $data = $this->model->persistence->typecastSaveRow($this->model, $this->model->get());
        } else {
            $data = $this->model->get();
        }

        $this->template->set($data);
    }
public function modelRender()
    {
        if ($this->model instanceof \atk4\data\Model) {
            if ($this->controller instanceof Controller_ADView) {
                return;
            }
            $data = $this->model->persistence->typecastSaveRow($this->model, $this->model->get());
        } else {
            $data = $this->model->get();
        }

        $this->template->set($data);
    }
public function modelRender ( ) { if ( $ this -> model instanceof \ atk4 \ data \ Model ) { if ( $ this -> controller instanceof Controller_ADView ) { return ; } $ data = $ this -> model -> persistence -> typecastSaveRow ( $ this -> model , $ this -> model -> get ( ) ) ; } else { $ data = $ this -> model -> get ( ) ; } $ this -> template -> set ( $ data ) ; }
When model is specified for a view, values of the model is
inserted inside the template if corresponding tags exist.
This is used as default values and filled out before
the actual render kicks in.
When model is specified for a view values of the model is inserted inside the template if corresponding tags exist . This is used as default values and filled out before the actual render kicks in .