1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<?php class Images { public function __construct() { } public function tabImages($f3) { $f3->set('result',$f3->get('DB')->exec('SELECT * FROM images')); // now render the view echo Template::instance()->render('views/images.htm'); } } ?>