【发布时间】:2011-03-18 19:52:21
【问题描述】:
我在 CI 中看到了两种类型的构造函数。比如……
class Blog extends CI_Controller
{
function __construct()
{
parent::__construct();
}
}
和
class Blog extends CI_Controller
{
function Blog()
{
parent::Controller();
}
}
它们之间有什么区别?我不确定该选择哪个。
【问题讨论】:
标签: php codeigniter