方法其實很簡單,在 Controller 裡面的 action function 裡面設定 $this->data 這個值即可。

add:
$this->data = $this->Model->create();

edit:
$this->data = $this->Model->read(null, $id);
arrow
arrow
    全站熱搜

    HACGIS 發表在 痞客邦 留言(0) 人氣()