WARNING: unlink(/home/users/web/b372/ipw.oxyscrip/public_html/public/templates_c///%%CC/CC4/CC4BC2E3%%inc_head.tpl.php.php) [function.unlink]: No such file or directory (on line 44 of file '/hermes/bosweb/web037/b372/ipw.oxyscrip/public_html/3rdparty/Smarty-2.6.11/libs/internals/core.write_file.php') Oxyscripts - PHP Development, tutorials, articles, news, programming, scripts and forums.
WARNING: _smarty_include(/home/users/web/b372/ipw.oxyscrip/public_html/public/templates_c///%%DC/DCB/DCB58445%%inc_header.tpl.php.php) [function.-smarty-include]: failed to open stream: No such file or directory (on line 1868 of file '/hermes/bosweb/web037/b372/ipw.oxyscrip/public_html/3rdparty/Smarty-2.6.11/libs/Smarty.class.php')
$person = new DataObjects_Person;
echo $person->tableName();
// echo's person
// now use the same object to query the extra_people table
$person->tableName('extra_people');
$person->id = 12;
$person->find(true);
// you can also use this in conjunction with table(), to create dataobjects for random tables..
$d = new DB_DataObject;
$d->tableName('person');
$d->table(array(
'id' => DB_DATAOBJECT_INT,
'name' => DB_DATAOBJECT_STRING,
));
$d->keys(array('id'));
$d->id = 12;
$d->find(true);
// should do the same as above..!