CakeRequest::__construct PHP Méthode

__construct() public méthode

Constructor
public __construct ( string $url = null, boolean $parseEnvironment = true )
$url string Trimmed URL string to use. Should not contain the application base path.
$parseEnvironment boolean Set to false to not auto parse the environment. ie. GET, POST and FILES.
    public function __construct($url = null, $parseEnvironment = true)
    {
        $this->_base();
        if (empty($url)) {
            $url = $this->_url();
        }
        if ($url[0] === '/') {
            $url = substr($url, 1);
        }
        $this->url = $url;
        if ($parseEnvironment) {
            $this->_processPost();
            $this->_processGet();
            $this->_processFiles();
        }
        $this->here = $this->base . '/' . $this->url;
    }