PHP Classes

File: examples/library/www/books.php

Recommend this page to a friend!
  Classes of Victor Bolshov  >  Tiny PHP ORM Framework  >  examples/library/www/books.php  >  Download  
File: examples/library/www/books.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Tiny PHP ORM Framework
Map objects to databases using composed queries
Author: By
Last change:
Date: 6 years ago
Size: 417 bytes


Class file image Download

use \tinyorm\Select;

__DIR__ . "/../bootstrap.php";

$books = (new Select("book"))->orderBy("title")->execute();

echo \
library\View::render("header.php", [
"title" => "Tinyorm Library: Books",
"description" => \library\View::render("sidebar/books.html"),

echo \
"books" => $books,

echo \
library\View::render("footer.php"); ?>

For more information send a message to info at phpclasses dot org.