ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Three-Tier Development with PHP 5
Subject:   Not very infomative
Date:   2005-05-31 23:57:14
From:   dxxchung
Response to: Not very infomative

I finally found out what had been missing in your model.


Firstly, add the following lines to pass variables in save.php
$x=$_POST["x"];
$y=$_POST["y"];
$z=$_POST["z"];
Secondly, add a program, which I called schemagen.php.
<?php
//
// Builds the DataObjects classes
$_SERVER['argv'][1] = 'example.ini';
require_once 'DB/DataObject/createTables.php';
?>
I have seen this article translated and posted in simplified Chinese in several sites. Anyway, your model will become the backbone of my first commercial project.