\think\routeRuleName

Summary

Methods
Properties
Constants
set()
import()
get()
No public properties found
No constants found
No protected methods found
$item
N/A
No private methods found
No private properties found
N/A

Properties

$item

$item : 

Type

Methods

set()

set(string  $name, array  $value, boolean  $first = false) : void

注册路由标识

Parameters

string $name

路由标识

array $value

路由规则

boolean $first

是否置顶

import()

import(  $item) : void

导入路由标识

Parameters

$item

get()

get(string  $name = null) : array|null

根据路由标识获取路由信息(用于URL生成)

Parameters

string $name

路由标识

Returns

array|null