Files
friendica/src/Module
Tobias Diekershoff 786596fec5 remove superfluous characters from warning messages in the admin panel
\r\n was shown in the warning messages of the admin panel log view page. They have
been removed. Additionally the messages.po file has been regenerated.
2021-10-01 14:02:27 +02:00
..
2021-09-24 04:35:27 +00:00
2021-07-25 15:23:37 +00:00
2021-03-29 08:40:20 +02:00
2021-06-16 22:19:26 +02:00
2021-03-29 08:40:20 +02:00
2021-03-29 08:40:20 +02:00
2021-03-29 08:40:20 +02:00
2021-07-25 15:23:37 +00:00
2021-08-08 19:30:21 +00:00
2021-03-29 08:40:20 +02:00
2021-03-29 08:40:20 +02:00
2021-07-25 15:23:37 +00:00
2021-03-29 08:40:20 +02:00
2021-07-25 15:23:37 +00:00
2021-07-25 15:23:37 +00:00
2020-07-23 06:25:01 +00:00
2021-03-29 08:40:20 +02:00
2021-07-25 15:23:37 +00:00
2021-03-29 08:40:20 +02:00
2021-07-25 15:23:37 +00:00
2021-03-29 08:40:20 +02:00
2021-03-29 08:40:20 +02:00
2021-03-29 08:40:20 +02:00
2021-03-29 08:40:20 +02:00
2021-07-25 15:23:37 +00:00
2021-03-29 08:40:20 +02:00
2021-03-29 08:40:20 +02:00
2021-03-29 08:40:20 +02:00
2021-07-25 15:23:37 +00:00
2021-03-29 08:40:20 +02:00
2019-05-01 20:17:15 +02:00
2021-03-29 08:40:20 +02:00
2021-03-29 08:40:20 +02:00
2021-07-25 15:23:37 +00:00
2021-03-29 08:40:20 +02:00
2021-03-29 08:40:20 +02:00
2021-03-29 08:40:20 +02:00
2021-03-29 08:40:20 +02:00
2021-03-29 08:40:20 +02:00
2021-03-29 08:40:20 +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.