Ich bau mir grade eine kleine Website auf und wollte ein Template System bauen.
Erhalte aber jetzt folgenden Fehler:
Meine Funktion:Quote:
Warning: array_push() expects parameter 1 to be array, null given in C:\xampp\htdocs\padriopanel\include\class\template .class.php on line 32
PHP Code:
public static function setContent($content, $id){
Global $PageContent;
$ready = array($id => $content);
array_push($PageContent, $ready);
}
PHP Code:
public static $PageContent = array();
Lg. Padrio






