Mathias Conradt schrieb:
Use the wfGetDB function in response.php to retrieve
the data (i.e.
articles) from the database.
...
$theDoc->updateTitle();
...
public function updateTitle()
{
$dbr = wfGetDB( DB_SLAVE );
$theData = array();
$theData['title'] = $this->title;
$theWhere = array('id='.$this->uid);
$dbr->update('page_make_up', $theData,$theWhere);
$dbr->commit();
}
...
Thats the problem: the response.php is a standalone file. No claases are
integrated. It's only called from the ajax request. So none global vars
and/or claases are implemented.
Hope someone can understand my problem.
regards
mic