Esempio n. 1
0
 function GET()
 {
     $db = new MysqliDb($this->config["host"], $this->config["user"], $this->config["pass"], $this->config["base"]);
     $results = $db->get('VIP');
     if (!empty($results) && count($results) > 0) {
         SimplestView::render('index', array("results" => $results));
     }
 }
Esempio n. 2
0
 function GET()
 {
     $db = new MysqliDb($this->config["host"], $this->config["user"], $this->config["pass"], $this->config["base"]);
     $results = $db->query('SELECT * from film ORDER BY titre;');
     if (!empty($results) && count($results) > 0) {
         SimplestView::render("header");
         SimplestView::render('films', array("results" => $results));
         SimplestView::render("footer");
     }
 }
Esempio n. 3
0
            <?php 
SimplestView::render($page, $data);
?>
        </div>

        

        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
        <script>window.jQuery || document.write('<script src="<?php 
echo site_url("js/vendor/jquery-1.8.2.min.js");
?>
"><\/script>')</script>
        <script src="<?php 
echo site_url("js/bootstrap.min.js");
?>
"></script>
        <script src="<?php 
echo site_url("js/plugins.js");
?>
"></script>
        <script src="<?php 
echo site_url("js/main.js");
?>
"></script>
    </body>
</html>