$pid = I("get.pid");
//实例化image表
$image = M('Image');
$arr = $image->field("id,pid,name")->where("pid=0")->select();
如果where()条件中的pid0改成上面I()的那个$pid 页面就会报错
SQLSTATE[42000]: Syntax error or access violation: 1064 Erreur de syntaxe près de ')' à la ligne 1
求这种的做法,当前页,传递参数给当前方法使用。