Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

codeigniter constructors what is the difference


codeigniter constructors what is the difference  using -'php,codeigniter'

I see two types of contructors in CI. For instance...

class Blog extends CI_Controller
{
    function __construct()
    {
        parent::__construct();
    }
}


and

class Blog extends CI_Controller
{
       function Blog()
       {
                parent::Controller();
       }
}


What is the difference between them? I'm not sure which to choose.
    

asked Sep 15, 2015 by EviGrenier
0 votes
5 views



Related Hot Questions



Government Jobs Opening


...