Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions system/View/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,10 @@ public function endSection()
* @param bool $saveData If true, saves data for subsequent calls,
* if false, cleans the data after displaying.
*/
public function renderSection(string $sectionName, bool $saveData = false): string
public function renderSection(string $sectionName, bool $saveData = false, string $defaultContent= ""): string
{
if (! isset($this->sections[$sectionName])) {
return '';
return $defaultContent;
}

$output = '';
Expand Down