i have class on PHP, and when called it the function __construct($_POST)
must be process.
the __construct()
function define as :
// Constructor Function
function __construct($_POST){
$this->customer = trim($_POST['customer']);
$this->CreateDate = date('Y/m/d');
}
when i called any function on class, its processed and insert to DataBase but this massage is appear :-
Missing argument 1 for Draft::__construct(), called in ....
what wrong on my code
thankx