-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Installation Testing 1: Flash and Alert modification
Controller Constructs: Move session into arguments of the construct for controllers. Initialize flash with session. eg. $this->flash = new Flash($session) Controller Functions: Modify the alert and change the flash function to flash_message. Views: Include echo $alert in all indexes. ```` /** * @return string */ private function alert(): string { return $this->viewRenderer->renderPartialAsString('/invoice/layout/alert', [ 'flash' => $this->flash, 'errors' => [], ]); } /** * @param string $level * @param string $message * @return Flash */ private function flash_message(string $level, string $message): Flash { $this->flash->add($level, $message, true); return $this->flash; } ```` Include additional messages in resources/messages/en/app.php and src/Invoice/Language/English/app_lang.php Psalm Level 1 tested.
- Loading branch information
1 parent
a07d1dc
commit fb5bf01
Showing
137 changed files
with
4,635 additions
and
3,545 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
echo $alert; | ||
?> | ||
|
||
<h1><?= $translator->translate('invoice.client.peppol'); ?></h1> | ||
|
||
<div> | ||
</div> |
Oops, something went wrong.