Friday, July 9, 2010

CodeIgniter Tutorial: [Creating Accounting Application] Part 5 The Mainpage





Ok, let’s start with the easiest one first. We will create a simple menu page that contains links to other modules on the system. We put it on the Mainpage controller class.

Look at the Mainpage.php controller file. There is a function on it named exactly the same with the filename: Mainpage(). This should be exactly the same including the case. This is the constructor or initialization function of the class. Each time the class is called or instantiate, this function is called automatically. We put some initialization lines inside it:

CodeIgniter Tutorial: [Creating Accounting Application] Part 5 The Mainpage

No comments:

Post a Comment