Documentation

index.php

Home Page View

Variables expected:

  • $dashboardData: array Dashboard data from HomeFacade
  • $homeFacade: HomeFacade instance
  • $languages: array Languages data for select dropdown

PHP version 8.1

Tags
category

Lwt

author

HugoFara hugo.farajallah@protonmail.com

license

Unlicense http://unlicense.org/

link
https://hugofara.github.io/lwt/docs/php/
since
3.0.0

Table of Contents

Functions

renderWordPressLogout()  : void
When on a WordPress server, make a logout button.
renderHomeConfig()  : void
Load the content of warnings and initial data for visual display.

Functions

renderWordPressLogout()

When on a WordPress server, make a logout button.

renderWordPressLogout(bool $isWordPress, string $base) : void
Parameters
$isWordPress : bool

Whether WordPress session is active

$base : string

The application base path

renderHomeConfig()

Load the content of warnings and initial data for visual display.

renderHomeConfig(array<string|int, mixed>|null $lastTextInfo, string $base, int $textCount) : void

Outputs a JSON config element that is read by home_app.ts.

Parameters
$lastTextInfo : array<string|int, mixed>|null

Current text info for Alpine.js initial state

$base : string

The application base path

$textCount : int

Number of texts for current language


        
On this page

Search results