Ingen output fra en Class
Er ny i OOP og prøver nogle ideer af og håber på resultat ;)Har en Class:
<?php
class Statusbar {
private $_aktuel = array('step1_a.gif','step2_a.gif','step3_a.gif','step4_a.gif','step5_a.gif');
private $_inaktiv = array('step1_b.gif','step2_b.gif','step3_b.gif','step4_b.gif','step5_b.gif');
private $_not_pass = array('step1_a.gif','step2_a.gif','step3_a.gif','step4_a.gif','step5_a.gif');
private $_pass = array('step1_a.gif','step2_a.gif','step3_a.gif','step4_a.gif','step5_a.gif');
public $trin = array("1" => "step1_a.gif", "2" => "step2_a.gif", "3" => "step1_a.gif", "4" => "step4_a", "5" => "step5_a.gif");
function print_statusbar() {
echo $trin;
}
}
?>
og forsøger mig med noge output:
$statusbar = new Statusbar();
$statusbar->print_statusbar();
Der kommer intet.... nogen der kan hjælpe mig?
'
///McCookie
