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: 8 years ago
Size: 417 bytes
 

Contents

Class file image Download
<?php

use \tinyorm\Select;

include
__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 \
library\View::render(
   
"books.php",
    [
       
"books" => $books,
    ]
);

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