[Mediawiki-l] Catlinks
Nanda
njansen at natuurlijk.nl
Fri Feb 16 12:52:39 UTC 2007
I use the information of the Categories in my template with:
$this->data['catlinks']
Now I want to bring this to an extension. I wrote a class:
class Maak {
var $catlinks;
function Maak($catlinks) {
$this->data['catlinks'] = $catlinks;
}
}
$testen = new Maak ();
$testen ->Maak();
echo "<pre>";
var_dump($testen);
echo "</pre>";
The output i get is:
object(Maak)#184 (2) {
["catlinks"]=>
NULL
["data"]=>
array(1) {
["catlinks"]=>
NULL
}
}
The object seems to be empty.
Any idea how i can get these data?
More information about the MediaWiki-l
mailing list