Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Bramus
Router
Router
set404
Bramus\Router\Router::set404 PHP Method
Router Class Documentation
Show file
Open project: bramus/router
set404()
public
method
Set the 404 handling function
public
set404
(
object
|
callable
$fn
)
$fn
object
|
callable
The function to be executed
public function set404($fn) { $this->notFoundCallback = $fn; }
Router
all
before
delete
get
getBasePath
getCurrentUri
getRequestHeaders
getRequestMethod
handle
match
mount
options
patch
post
put
run
set404