php 分页类里面 兄弟连高老师讲的视频教程。
class page{
private $uri;
}
private function __get($args){
if($args==\"limit\")
return $this-limit;
else
return null;
}
调用的是$sql=\"select * from shops {$page-limit}\";
提示 Warning: The magic method __get() must have public visibility and cannot be static in D:\\wamp\\www\\li
我只粘贴了部分代码了..
这个怎么解决呢... 会不会是wamp配置问题呢? 类跟配置有关系吗??源码是老师的没动过...
高手帮我解决下啊~~
<pre id=\"best-answer-content\" class=\"reply-text mb10\">你要理解__get()这个PHP类的内置魔术方法才行啊!
private function __get($args) 换成 public function __get($args) 试试!!!