public function __construct($url) { parent::__construct($url); if (empty($url[2]) || !is_numeric($url[2])) { $this->id = false; } else { $this->id = $url[2]; } }
public function __construct($url) { parent::__construct($url); $user = $this->get_user(); if (empty($user)) { $this->create_redirect(); } else { $this->user = $user; } }