PHP Classes
elePHPant
Icontem

File: examples/library/www/authors.php

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

Contents

Class file image Download
<?php

use \tinyorm\Select;

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

$authors = (new Select("author"))->orderBy("name")->execute();

echo \
library\View::render("header.php", [
   
"title" => "Tinyorm Library: Authors",
   
"description" => \library\View::render("sidebar/authors.html"),
]);

echo \
library\View::render(
   
"authors.php",
    [
       
"authors" => $authors,
    ]
);

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