摘要: function __construct(){ //需要进行的操作 } //TP框架中 function __construct(){ parent::__construct(); //继承父类的构造函数 必须添加 } 阅读全文
posted @ 2017-01-04 10:33 贪婪的猫 阅读(119) 评论(0) 推荐(0) 编辑
摘要: try{ }catch(Exception $e){ } //TP 框架中 try{ }catch(\Exception $e){ } 阅读全文
posted @ 2017-01-04 10:31 贪婪的猫 阅读(136) 评论(0) 推荐(0) 编辑