摘要: 今儿开发过程中发现 tp是unset 变量失败。。具体代码foreach( $this->menu as $k => $v){ if(0 == $v['flag']) unset($this->menu[$k]);}逻辑很简单。。但是居然没过滤掉menu里面的值。。一番折腾后发现居然是 TP 底层重写了 __set __get 造成的 具体代码 public function __construct() { //实例化视图类 $this->view = Think::instance('View'); /... 阅读全文
posted @ 2013-11-26 16:06 ﹏Sakura 阅读(2949) 评论(0) 推荐(0)