friendica/src/Module
2019-12-30 01:17:16 +00:00
..
Admin Remove deprecated App::query_string - replace with DI::args()->getQueryString() 2019-12-29 20:17:50 +01:00
Api/Mastodon Add Model\Introduction class to DI registry 2019-12-29 20:18:25 +01:00
Base
Contact
Debug Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Diaspora Creating interfaces for Config/PConfig & fix tests 2019-12-29 20:18:19 +01:00
Filer
HTTPException
Item
Notifications
Profile Remove deprecated App::query_string - replace with DI::args()->getQueryString() 2019-12-29 20:17:50 +01:00
Search Use DI::baseUrl() for Search\Index.php 2019-12-29 20:18:25 +01:00
Security Remove namespaces 2019-12-29 20:18:26 +01:00
Settings
Special
WellKnown Fix fatal errors caused by PR 8019 2019-12-30 01:17:16 +00:00
AccountManagementControlDocument.php
Acctlink.php
AllFriends.php Remove deprecated App::query_string - replace with DI::args()->getQueryString() 2019-12-29 20:17:50 +01:00
Apps.php
Attach.php
BaseAdminModule.php Remove deprecated App::query_string - replace with DI::args()->getQueryString() 2019-12-29 20:17:50 +01:00
BaseSearchModule.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
BaseSettingsModule.php
Bookmarklet.php Remove deprecated App::query_string - replace with DI::args()->getQueryString() 2019-12-29 20:17:50 +01:00
Contact.php Remove deprecated App::cmd - replace with DI::args()->getCommand() 2019-12-29 20:17:51 +01:00
Credits.php
Delegation.php
Directory.php Remove deprecated App::query_string - replace with DI::args()->getQueryString() 2019-12-29 20:17:50 +01:00
Feed.php
FollowConfirm.php Add Model\Introduction class to DI registry 2019-12-29 20:18:25 +01:00
Followers.php
Following.php
Friendica.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Group.php
Hashtag.php
Help.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Home.php Remove deprecated App::query_string - replace with DI::args()->getQueryString() 2019-12-29 20:17:50 +01:00
HoverCard.php Remove namespaces 2019-12-29 20:18:26 +01:00
Inbox.php
Install.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Invite.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Like.php
Magic.php Fix fatal errors caused by PR 8019 2019-12-30 01:17:16 +00:00
Maintenance.php
Manifest.php
NodeInfo.php
Objects.php Remove deprecated App::query_string - replace with DI::args()->getQueryString() 2019-12-29 20:17:50 +01:00
Oembed.php
OpenSearch.php Fix fatal errors caused by PR 8019 2019-12-30 01:17:16 +00:00
Outbox.php
Owa.php
Photo.php
Pinned.php
Profile.php Remove deprecated App::query_string - replace with DI::args()->getQueryString() 2019-12-29 20:17:50 +01:00
Proxy.php
PublicRSAKey.php
RandomProfile.php
README.md
ReallySimpleDiscovery.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00
Register.php Fix fatal errors caused by PR 8019 2019-12-30 01:17:16 +00:00
RobotsTxt.php
Smilies.php
Starred.php
Statistics.php
Theme.php
ThemeDetails.php
ToggleMobile.php
Tos.php
Welcome.php
Xrd.php Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01: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.