namespace app\core;
class Router
{
function __construct()
{
echo '1111';
}
}
if( $result->status == 'success' ){
$id = $result->order_id;
$db->query("UPDATE `invoices` SET `invoice_status` = '1' WHERE `invoice_id` = $id");
}
echo $result->status
$result->status == 'success'