PHP Classes

File: fwphp/glomodul/z_examples/MVC_FW/02L2adlian_mvc_2009/book_tbl.php

Recommend this page to a friend!
  Classes of Slavko Srakocic   B12 PHP FW   fwphp/glomodul/z_examples/MVC_FW/02L2adlian_mvc_2009/book_tbl.php   Download  
File: fwphp/glomodul/z_examples/MVC_FW/02L2adlian_mvc_2009/book_tbl.php
Role: Example script
Content type: text/plain
Description: Example script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change: Update of fwphp/glomodul/z_examples/MVC_FW/02L2adlian_mvc_2009/book_tbl.php
Date: 1 year ago
Size: 977 bytes


Class file image Download


foreach ($books as $title => $book)
'<tr><td><a href="?book='.$book->title.'">'.$book->title.'</a></td><td>'.$book->author.'</td><td>'.$book->description.'</td></tr>';

 formating data received from model
data can come in different formats from M :
  simple objects( sometimes called Value Objects), xml structures, json, ?

V should not be confused to the template mechanism. Sometimes they work in the same manner and address similar issues.

For example operation ?display account? will be associated to a ?display account? view. The view layer can use a template system to render the html pages. The template mechanism can reuse specific parts of the page: header, menus, footer, lists and tables, ?. Speaking in the context of the MVC pattern