Files
friendica/src/Module
Hypolite Petovan d6ff89d7b4 Merge pull request #7769 from annando/issue-3229
Changed OpenID registration
2019-10-29 10:32:02 -04:00
..
2019-10-22 22:47:37 +02:00
2019-10-28 18:16:10 +01:00
2019-10-26 04:03:27 +02:00
2019-05-01 19:48:49 +02:00
2019-03-22 22:28:13 -04:00
2019-05-05 10:00:28 +02:00
2019-05-03 08:50:17 +02:00
2019-05-04 21:25:16 +02:00
2019-10-29 13:26:54 +00:00
2019-05-01 21:29:04 +02:00
2019-05-19 03:12:22 +02:00
2019-05-01 20:17:15 +02:00
2019-05-18 21:23:12 +02:00
2019-01-21 10:35:51 -05:00
2019-10-25 00:41:48 +02:00

Friendica\Module

The Module namespace contains the different modules of Friendica. Each module is loaded through the App.

There are mainly two types of modules:

  • frontend modules to interact with users
  • backend modules to interact with machine requests

Frontend modules

This type of modules mainly needs a template, which are generally located at view/templates/.

A frontend module should extend the BaseModule, especially the content() method.

Backend modules

This type of modules mainly responds either with encoded XML or with JSON output. It isn't intended to respond with human readable text.

A frontend module should extend the BaseModule, especially the rawContent() method.

Routing

Every module needs to be accessed within a route. The routes are defined inside Router->collectRoutes().

Use the given routes as a pattern for further routes.

The routing library and further documentation can be found here.