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
| Module | What it shows |
home_page | The home page of the site (the default object). |
static_pages | The pages edited in the admin, by their URL name (/static_pages/show/about), with print, PDF, e-mail and RSS views. |
news | The news list and one news item, with comments. |
faq | Questions and answers by category. |
dashboard | The boards a visitor sees (?object=dashboard&board=<slug>), with the visitor's own copy of a board. Demos: Demos / dashboards. |
geo_content | Country and city of the visitor and a form to change the location; content can depend on it. |
advertising | The ad places of the layouts; their contents are edited in the admin. |
notifications | The notification bell of a signed-in user: new notifications (check) and mark as read (read). |
shop | The shop: catalogue, product page, basket, order, the user's orders. See the shop plugin. |
payment | The payment pages of a user: balance, deposit through a provider, confirmation and cancel pages the providers return to. |
docs | These 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
| Module | What it shows |
login_form | The login form of the site, its error pages (wrong login, inactive account) and the login with an OAuth provider. |
login | The login URL (/login): hands the request to the site's login handler (init_auth()). |
logout | The logout URL (/logout): signs the user out through the same handler. |
register | Registration of a new account, with the e-mail confirmation (a link or a code, and resend). |
get_pswd | Lost password: asks for the e-mail and sends a link to set a new password. |
user_profile | A user's public profile and its short card (the popover on member links). |
unsubscribe | The unsubscribe link of the site's mailings. |
Files for browsers and robots
| Module | What 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_map | The sitemap generator the modules' hooks feed (the sitemaps.org protocol). |
browserconfigxml | /browserconfig.xml for Windows tiles. |
crossdomainxml | /crossdomain.xml for old browser plugins. |
dynamic | Small dynamic answers of the framework: an image with an error text, the asset files served through PHP, the language switch. |
Framework endpoints
| Module | What it does |
api | The JSON endpoints of the modules (/api/<object>/<action>): a module's _api_<action>() method answers (guide: JSON endpoints). |
htmx | The htmx fragments of the widgets (tables, inline edit). See the htmx chapter. |
site_nav_bar | The breadcrumbs of the pages, from the modules' hooks; a block, no page of its own. |
test | Test pages of the framework (the CSS-framework variants, placeholders); its debug actions answer only in debug mode. |
test_403 | Answers 403, to see the site's error page. |
test_404 | Answers 404, to see the site's not-found page. |