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
Blade
addRule
Cml\Service\Blade::addRule PHP Method
Blade Class Documentation
Show file
Open project: linhecheng/cmlphp
addRule()
public
method
添加一个模板替换规则
public
addRule
(
string
$pattern
,
callable
$func
)
$pattern
string
正则
$func
callable
执行的闭包函数
public function addRule($pattern, callable $func) { $this->rule[$pattern] = $func; return $this; }
Blade
addRule
display
initBaseDir