parameters from url
This commit is contained in:
parent
40800414cb
commit
83b871df06
|
@ -149,12 +149,20 @@ class Url
|
|||
|
||||
public function pageNumber()
|
||||
{
|
||||
if(isset($this->parameters['page'])) {
|
||||
if (isset($this->parameters['page'])) {
|
||||
return (int)$this->parameters['page'];
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
public function parameter($field)
|
||||
{
|
||||
if (isset($this->parameters[$field])) {
|
||||
return $this->parameters[$field];
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function setNotFound()
|
||||
{
|
||||
$this->setWhereAmI('page');
|
||||
|
|
Loading…
Reference in New Issue