Genki
unread,Jun 14, 2008, 1:02:04 AM6/14/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Php Object Generator
Hi,
I read the excellent "Part 1 - Essentials" PDF file and I love the
simple examples. However, I didn't readily find any examples of a
simple but complete script file which shows the various INCLUDEs that
are necessary.
The tutorials show code snippets for using the various functions, but
they don't show that the configuration.php file is necessary and that
the database.php class is necessary.
Maybe it's in the "case studies" but being impatient I wanted a "quick
start" example. It would be great to have a "Quick Start Example"
which looks something like this:
<?php
include_once "configuration.php";
include_once "objects/class.database.php";
include_once "objects/class.book.php";
$book = new Book(); //create a book object
$bookList = $book->GeList(array(array("bookid", ">", 0)));
foreach ($bookList as $book)
{
echo $book->title;
}
?>