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?