Suggestion: Give example of one simple but complete script

0 views
Skip to first unread message

Genki

unread,
Jun 14, 2008, 1:02:04 AM6/14/08
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;
}
?>

Vlada

unread,
Jul 20, 2008, 9:25:26 AM7/20/08
to Php Object Generator
@Genki

This realy helps me a lot. Your quick start example
save a lot of time.


Thanks
Reply all
Reply to author
Forward
0 new messages