bin gettiing diesem Fehlerabgefangene Ausnahme 'Exception' with message '* Eigenschaft Login GET ist nicht vorhanden' kann jemand geben Sie mir die Lösung
Fatal error:
Uncaught exception 'Exception' with message ' * GET Property login does not exist' in E:\xampp\htdocs\UniversityWork\Project\UniversityProjectPHP\model\Checkout.php:30 Stack trace: #0 E:\xampp\htdocs\UniversityWork\Project\UniversityProjectPHP\views\top.php(44): Checkout->__get('login') #1
E:\xampp\htdocs\UniversityWork\Project\UniversityProjectPHP\checkout.php(9): require_once('E:\xampp\htdocs...') #2 {main} thrown in E:\xampp\htdocs\UniversityWork\Project\UniversityProjectPHP\model\Checkout.php on line 30
Linie 44 wie folgt aussehen
if ($obj_user->login && in_array($current, $public_pages)) {
$_SESSION['ref_url'] = $url;
$_SESSION['msg'] = "You must <a href='" . BASE_URL . "process/process_logout.php'>LOGOUT</a> to view this page";
header("Location:" . BASE_URL . "msg.php");
}
Linie 30 aussehen wie
public function __get($name) {
$method_name = "get_$name";
if (!method_exists($this, $method_name)) {
**throw new Exception(" * GET Property $name does not exist");**
}
return $this->$method_name();
}
Zeilennummer 9 aussehen wie dieses
<title> Home shop || Checkout </title>
<?php
require_once 'model/user.php';
require_once 'model/brand.php';
require_once 'model/Checkout.php';
require_once 'model/product.php';
require_once 'model/cart.php';
require_once 'model/category.php';
**require_once 'views/top.php';**
require_once 'model/web_interface.php';
?>
danke dir mein Herr arbeitet jetzt :) +1 –
Ok, gut zu hören, dass! :) – MunchyYDL