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

Frontend Models

Frontend Models are only loaded for the frontend only.

The Default Classes

General Model

File Name

mvc_front_general.class.php

Description

This is the mother. All new frontend classes should extend this class. This class is a collection of some regularly used SQL methods.

Example

Copy to Clipboard

Child Theme Override

No

Cross Site Model

File Name

mvc_front_cross_site.class.php

Description

This is the default class for the whole frontend site. You can create some regularly used methods here. An instance is created automatically when a page is loaded. You can use it to access the methods from the General class

Example

Copy to Clipboard

Child Theme Override

Yes

Parent Cross Site Model

File Name

mvc_front_parent_cross_site.class.php

Description

This is the parent of mvc_front_cross_site. This class is a collection of some regularly used methods for any sites and set up some dependencies to run Simpods. the function bootstrap_menu is from this parent class.

Example

Copy to Clipboard

Child Theme Override

No

Factory Model

File Name

mvc_front_factory.class.php

Description

This is a class for storing global/static variables.

Example

Copy to Clipboard

Child Theme Override

Yes

Parent Factory Model

File Name

mvc_front_parent_factory.class.php

Description

This is a parent class for mvc_front_factory. It auto-loads the classes and carries some global/static variables which can be accessible through MVC_Front_Factory

Example

Copy to Clipboard

Child Theme Override

No

Guest Accounts Model

File Name

mvc-front-simpods-guest-accounts.class.php

Description

Simpods Guest Accounts allow you to quickly create guest accounts for your potential clients. This frontend class will create a “last_login” user-meta when a logged-in user lands on any page.

Example

Copy to Clipboard

Child Theme Override

No

Area Categories Model

File Name

mvc_front_area_categories.class.php

Description

This is the class to process data for Simpods Area Categories, also named Simpods Hierarchy.

Example

Copy to Clipboard

Child Theme Override

No

Linked Areas Model

File Name

mvc-front-simpods-linked-areas.class.php

Description

This is the class to process data for Simpods Linked Areas

Example

Copy to Clipboard

Child Theme Override

No

User Code Model

File Name

mvc-front-simpods-user-code.class.php

Description

This is designed to handle user codes such as authorisation codes

Example

Copy to Clipboard

Child Theme Override

No

Sample Model

File Name

mvc-front-sample.class.php

Description

You can find it in the Simpods Basci theme. Duplicate this one when you need to create a new model.

Example

Copy to Clipboard

Child Theme Override

Yes