Skip to content

Commit

Permalink
[ENH] refactor view to display all data assigned
Browse files Browse the repository at this point in the history
  • Loading branch information
bim-g committed Apr 25, 2024
1 parent 047caa0 commit 13f3e5d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Core/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,14 @@ public function assign(string $variable, $value)
$this->data[$variable] = $value;
}

/**
* List all data assigned before being displayed
* @return array
*/
public function getAssignData(): array
{
return $this->data;
}
/**
* you should provide the extension of your file,
* in another case the file will be missing
Expand Down Expand Up @@ -273,4 +281,4 @@ public function resetConfig(){
$this->layout = '';
$this->folder_name = '';
}
}
}

0 comments on commit 13f3e5d

Please sign in to comment.