1. Home
  2. Docs
  3. Simpods MVC
  4. Tutorials
  5. Controllers
  6. Frontend Controllers

Frontend Controllers

The Default Classes

Front Controller

File Name

ctrl_mvc_front_controller.class.php

Description

This is the mother. Frontend controllers should extend this class. This class is a collection of required methods for all controllers and other commonly used controller methods.

Example

Copy to Clipboard

Child Theme Override

No

Cross Site Controller

File Name

ctrl_mvc_front_cross_site.class.php

Description

This is the cross site controller that is always run alongside the controller for the template. It is accessed in the same way as the template controller via the $crossCtrl_cla global. JavaScript and stylesheets needed everywhere should be enqueued here

Example

Copy to Clipboard

Child Theme Override

Yes

General Controller

File Name

Various Files

Description

This is the template controller loaded as described in this atricle. This is where user input and variables for the template should be prepared as described in this article, template specific JavaScript and stylesheets should also be enqueued here

Example

Copy to Clipboard

Child Theme Override

Yes