Overview

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

Overview

Previous pageReturn to chapter overviewNext page

We create all controllers in below locations:

 

/development/controller/  (See structure in Organize Resource )

 

A controller is a PHP Class that create first instance of a page, execute some logic and render output.

 

A controller always extends appRain_Base_Core. See bellow example:
 

class homeController extends appRain_Base_Core
{
}