public function get_org() { $id = 1; $data = array(); if ($id) { $ret = $this->obj->detail($id); if ($ret['org_id']) { include_once ROOT_PATH . 'lib/class/auth.class.php'; $auth = new auth(); $data = $auth->get_org($ret['org_id']); } } return $data; }
public function get_org() { $id = intval($this->input['id']) ? intval($this->input['id']) : 0; $data = array(); if ($id) { $ret = $this->obj->detail($id); if ($ret['org_id']) { include_once ROOT_PATH . 'lib/class/auth.class.php'; $auth = new auth(); $data = $auth->get_org($ret['org_id']); } } $this->addItem($data); $this->output(); }