I方法用法,可以使用I('')代替$_POST,或者$_GET,比较安全 // I()方法使用默认的过滤函数进行过滤,然后添加到数据库<br>
//在处理数组类的场景,不太适合,例如:$_POST['id']是批量获取值,这里应该注意<br>
<br>
if(M('Node')->add(I(''))){ <br>
$this->success('保存成功',U('Admin/Rbac/node'));<br>
}else{<br>
$this->error('保存失败');<br>
}
AD:真正免费,域名+虚机+企业邮箱=0元

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Notepad++7.3.1
Easy-to-use and free code editor

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Mac version
God-level code editing software (SublimeText3)

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment
