hey ich möchte 2 variablen außerhalb einer klasse verfügbar machen
PHP-Code:
//class.php
class inhalt
{
function manage_payment($uid)
{
if(isset($_POST['submit']))
{
$form = $this->check_form($_POST,0);
$css_klasse = $this->css_klasse;
$this->form = $form;
$this->css_klasse = $css_klasse;
}
}
}
//index.php
$getInh = new inhalt;
$getInh->manage_payment($uid);
$form = $getInh->form;
$css_klasse = $getInh->css_klasse;
$fetch_pay = $this->fetch_pay;
er spuckt mir 3 fehlermeldungen aus
Code:
Notice: Undefined property: inhalt::$form in \tools\index.php on line 552
Notice: Undefined property: inhalt::$css_klasse in \tools\index.php on line 553
Fatal error: Using $this when not in object context in \tools\index.php on line 554
wisst ihr wie ich diese Variablen außerhalb der klasse aufrufen kann?
mfg Julius