public function addDlArea() { $this->begin('?app=syslogistics&ctl=admin_regions&act=index'); $parentId = input::get('parentId'); $name = input::get('name'); try { area::editArea('add', $parentId, $name); } catch (Exception $e) { $msg = $e->getMessage(); $this->end(false, $msg); } $this->end(true, app::get('syslogistics')->_('添加成功')); }