User modules

The modules of the user side that come with yf. A module answers ?object=<module>&action=<method> (/<module>/<action>/<id> with rewrite on); its public methods are the actions, a method whose name starts with _ never is. A site turns a module on or off, and decides who may open it with the block rules of the center area. A site changes a module by extending it: modules/<module>.class.php with class <module> extends yf_<module> (or site__<module> per site); make:module scaffolds a new one (console). Every class, with its settings, is in the API reference under Modules.

Pages and content

ModuleWhat it shows
home_pageThe home page of the site (the default object).
static_pagesThe pages edited in the admin, by their URL name (/static_pages/show/about), with print, PDF, e-mail and RSS views.
newsThe news list and one news item, with comments.
faqQuestions and answers by category.
commentsThe comments other modules show under their records (the comment form and list come from _class('comments')); view_unread lists the new ones of the visitor.
dashboardThe boards a visitor sees (?object=dashboard&board=<slug>), with the visitor's own copy of a board. Demos: Demos / dashboards.
geo_contentCountry and city of the visitor and a form to change the location; content can depend on it.
advertisingThe ad places of the layouts; their contents are edited in the admin.
notificationsThe notification bell of a signed-in user: new notifications (check) and mark as read (read).
shopThe shop: catalogue, product page, basket, order, the user's orders. See the shop plugin.
paymentThe payment pages of a user: balance, deposit through a provider, confirmation and cancel pages the providers return to.
docsThese docs and demos (/docs). What the user side shows is set on the Settings page (Docs & demo site): nothing in production unless the site is a demo website.

Accounts

ModuleWhat it shows
login_formThe login form of the site, its error pages (wrong login, inactive account) and the login with an OAuth provider.
loginThe login URL (/login): hands the request to the site's login handler (init_auth()).
logoutThe logout URL (/logout): signs the user out through the same handler.
registerRegistration of a new account, with the e-mail confirmation (a link or a code, and resend).
get_pswdLost password: asks for the e-mail and sends a link to set a new password.
user_profileA user's public profile and its short card (the popover on member links).
unsubscribeThe unsubscribe link of the site's mailings.

Files for browsers and robots

ModuleWhat it answers
robotstxt/robots.txt: allows indexing on the production domain (main()->PRODUCTION_DOMAIN), denies it on every other host, with the sitemap line.
sitemapxml/sitemap.xml, built from the sitemap hooks of the modules. See sitemap.
site_mapThe sitemap generator the modules' hooks feed (the sitemaps.org protocol).
browserconfigxml/browserconfig.xml for Windows tiles.
crossdomainxml/crossdomain.xml for old browser plugins.
dynamicSmall dynamic answers of the framework: an image with an error text, the asset files served through PHP, the language switch.

Framework endpoints

ModuleWhat it does
apiThe JSON endpoints of the modules (/api/<object>/<action>): a module's _api_<action>() method answers (guide: JSON endpoints).
htmxThe htmx fragments of the widgets (tables, inline edit). See the htmx chapter.
site_nav_barThe breadcrumbs of the pages, from the modules' hooks; a block, no page of its own.
testTest pages of the framework (the CSS-framework variants, placeholders); its debug actions answer only in debug mode.
test_403Answers 403, to see the site's error page.
test_404Answers 404, to see the site's not-found page.