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
Cml
Service
FastRoute
get
Cml\Service\FastRoute::get PHP Method
FastRoute Class Documentation
Show file
Open project: linhecheng/cmlphp
get()
public
method
增加get访问方式路由
public
get
(
string
$pattern
,
string
|
array
$action
)
$pattern
string
路由规则
$action
string
|
array
执行的操作
public function get($pattern, $action) { $this->addRoute('GET', $pattern, $action); return $this; }
FastRoute
addRoute
any
delete
get
getActionName
getAppName
getControllerAndAction
getControllerName
getFullPathNotContainSubDir
getSubDirName
group
options
parseUrl
parseUrlParams
patch
patternFactory
post
put
rest