Browse Source

Send promos to document.html.php for dropdown list

LaurentTreguier 9 years ago
parent
commit
b0fba66689
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      controllers/document.php

+ 2
- 0
controllers/document.php View File

1
 <?php
1
 <?php
2
 
2
 
3
 require_once(dirname(__DIR__) . "/models/document.class.php");
3
 require_once(dirname(__DIR__) . "/models/document.class.php");
4
+require_once(dirname(__DIR__) . "/models/promo.class.php");
4
 
5
 
5
 function document()
6
 function document()
6
 {
7
 {
7
     set("title", "Titre");
8
     set("title", "Titre");
8
     set("data", Document::getAll());
9
     set("data", Document::getAll());
10
+    set("promos", Promo::getAll());
9
     
11
     
10
     return html("list.html.php", "layout.html.php");
12
     return html("list.html.php", "layout.html.php");
11
 }
13
 }