Notice: Use of undefined constant id - assumed 'id' in F:\wamp\www\controller\listAction.class.php on line 43Notice: Undefined variable: _html in F:\wamp\www\core\Tool.class.php on line 65Warning: The magic method __get() must have public visibility and cannot be static in F:\wamp\www\core\Page.class.php on line 24Notice: Undefined variable: _page in F:\wamp\www\core\Page.class.php on line 106Notice: Undefined variable: _pageList in F:\wamp\www\core\Page.class.php on line 63Notice: Undefined variable: _pagesize in F:\wamp\www\controller\listAction.class.php on line 51Notice: Use of undefined constant info - assumed 'info' in F:\wamp\www\controller\listAction.class.php on line 54Notice: Use of undefined constant title - assumed 'title' in F:\wamp\www\controller\listAction.class.php on line 55Notice: Undefined property: navModel::$nav_name in F:\wamp\www\model\navModel.class.php on line 62Notice: Undefined property: navModel::$nav_name in F:\wamp\www\model\navModel.class.php on line 62Notice: Undefined property: navModel::$nav_name in F:\wamp\www\model\navModel.class.php on line 62Notice: Undefined property: navModel::$nav_name in F:\wamp\www\model\navModel.class.php on line 62Notice: Undefined variable: _nav1 in F:\wamp\www\controller\listAction.class.php on line 22
error_reporting(E_ALL ^ E_NOTICE);
回避一下应该说你的这个系统是很糟糕的
可以解决 ,感觉这个治标不治本
应该有更好的方法
所以说是 回避一下你需要书写健壮的程序,无论外部环境如何变化,你的程序都应该能正确执行
比如对于 Notice 级别的错误,你可以在变量使用前先检查他是否存在、其值是否是预期的,然后再做相应处理
//do some thing...
}
就感到很乱来..我肯定会isset判断
还有 多用isset 看看变量是否存在。