I'm trying to work width prototype instead of the wiki-ajax-framework. Therefore I need a php-file whichhandels the responses.
Response.php require('../../includes/DefaultSettings.php'); require('../../includes/GlobalFunctions.php'); require('../../includes/Sanitizer.php'); require('../../includes/Title.php');
if (isset($_POST['title'])) checkArticleTitle($_POST['title']);
function checkArticleTitle($title) { $wgTitle=new Title();
$stitle=$wgTitle->newFromText($title);
var_dump($title); }
But this don't create a title object?
What's going wrong
regards mic
On 12/09/2007, Michael Heyder Info@hafenvolleyballer.de wrote:
But this don't create a title object?
Have you actually bothered to read the Title class? You need to use an appropriate factory function to create a Title object:
Title::newFromText() Title::makeTitle() or Title::makeTitleSafe()
It strikes me as a bit dumb to try and hack away your own entry point (which is also not done correctly - see includes/WebStart.php) instead of working out why you're tripping over the sajax framework we've integrated into MediaWiki.
Rob Church
Rob Church schrieb:
On 12/09/2007, Michael Heyder Info@hafenvolleyballer.de wrote:
But this don't create a title object?
Have you actually bothered to read the Title class? You need to use an appropriate factory function to create a Title object:
Title::newFromText() Title::makeTitle() or Title::makeTitleSafe()
It strikes me as a bit dumb to try and hack away your own entry point (which is also not done correctly - see includes/WebStart.php) instead of working out why you're tripping over the sajax framework we've integrated into MediaWiki.
Rob Church
Hi Rob,
thanks this was a useful hint. Well, I prefer working width prototype and the additional effect libs, because igot some experience in this framework over the years.
The look at webstart solves my problems. Is there anywhere a api/docu about mw
Best Regards Mic
mediawiki-l@lists.wikimedia.org