控制器基类
*/
class Control{
protected $req;
function __construct(){
$this -> req = Request::getInstance();
}
/**
是否已用post方式提交过
* @return boolean
*/
function isPost(){
return $this -> req -> getPost() ? true : false;
}
getPost() 是在另一个类中定义的,三个单箭头什么意思呢 $this -> req,访问对象自身属性,再加一个->呢
开满天机
慕桂英546537