Question: How to create login and logout function in php? also Need to create: controller.class and model.class class Customer { //private data members private $customer_id, $full_name,
How to create login and logout function in php? also Need to create: controller.class and model.class
class Customer { //private data members private $customer_id, $full_name, $username, $password, $is_admin; //the constructor public function __construct($full_name, $username, $password, $is_admin) { $this->full_name = $full_name; $this->username = $username; $this->password = $password; $this->is_admin = $is_admin; } public function getId() { return $this->customer_id; } public function getFullName() { return $this->full_name ; } public function getUserName() { return $this->username; } public function getPassWord() { return $this->password; } public function getAdmin() { return $this->is_admin; } //set service id public function setId($id) { $this->customer_id = $id; } } Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
