RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
public static $date;
public static $year;
public static $month;
public static $day;
public static $now;
public function __construct() {
$this->date = new DateTime();
$this->year = $this->date->format("Y");
$this->month = $this->date->format("m");
$this->day = $this->date->format("d");
}
// и потом в коде ссылаюсь на this->year
Все равно создаются заказы