pagina del manuale
http://php.net/manual/it/reserved.variables.server.php
[...] 'REQUEST_METHOD' Which request method was used to access the page; i.e. 'GET', 'HEAD', 'POST', 'PUT'. [...]
pagina del manuale
http://php.net/manual/it/reserved.variables.server.php
[...] 'REQUEST_METHOD' Which request method was used to access the page; i.e. 'GET', 'HEAD', 'POST', 'PUT'. [...]
Accedo a quella pagina dove si trova la classe 'Request' ovvero il metodo 'init' grazie ad un altro metodo chiamato 'getRequest' che si trova in un file php diverso:
...
...Codice PHP:static function getRequest() {
$inst = self::instance();
if ( is_null( $inst->request ) ) {
$inst->request = new \woo\controller\Request();
}
return $inst->request;
}
e $_SERVER['REQUEST_METHOD'] = GET ma non capisco perché vale GET e cosa significa ottenere GETpoi proprio non capisco perché dentro il ciclo if la variabile diventa un booleano (true)
![]()
Ultima modifica di giannino1995; 03-10-2014 a 14:08
Più pratica in futuro...