diff options
author | Freya Murphy <freya@freyacat.org> | 2024-04-05 13:46:33 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-04-05 13:46:33 -0400 |
commit | adc545a0cb55836c92f8e7e31153584c219767aa (patch) | |
tree | 1b9fec9b6ed3eb90105f999a76e9ed7d00eaeb54 /src/web/core | |
parent | follow ppl (diff) | |
download | xssbook2-adc545a0cb55836c92f8e7e31153584c219767aa.tar.gz xssbook2-adc545a0cb55836c92f8e7e31153584c219767aa.tar.bz2 xssbook2-adc545a0cb55836c92f8e7e31153584c219767aa.zip |
user menu
Diffstat (limited to 'src/web/core')
-rw-r--r-- | src/web/core/_controller.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/web/core/_controller.php b/src/web/core/_controller.php index 4a788d3..3502ea5 100644 --- a/src/web/core/_controller.php +++ b/src/web/core/_controller.php @@ -10,6 +10,9 @@ abstract class Controller { // the database public $db; + // the format model + protected $format_model; + /** * Creates a constructor * @param Loader $load - the website loaded object @@ -26,6 +29,8 @@ abstract class Controller { if ($app) { $this->load->app_lang($lang, $app); } + + $this->format_model = $this->load->model('format'); } public function index() {} |