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)); } }
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"); } }
<?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>