Controller Name

Navigation:  Development > MVC (Model View Controller) > Controller >

Controller Name

Previous pageReturn to chapter overviewNext page

Controller name is always related to source file name and file path.
 
Name used in bellow areas

1.Source file

2.Class Name

3.Class Variable

 

Source file

Source file is a physical file that we save below location.The file name must be lowercase and with the name of controller.

 

Path: /development/controllers
 
For example: home.php

 

Class Name

Controller Name is used as a part of Class name. If controller name is home class name will be homeController

 

Class Variable

The class name assigned in to a Member Variable of a class.
 
For example: $name = "Home"
 
See below example of a controller called home
 
class homeController extends appRain_Base_Core
{
  public $name = "Home";
}