1.标题的调用 1.1设置 ?phpreturn [ title = 图书商城, domain = [ www = http://super.nat300.top/, m = http://super.nat300.top/m, web = http://super.nat300.top/web, weixin = http://super.nat300.top/weixin, ], upload = [ avatar = /uploads/avata
1.标题的调用
|
<?php
return [
'title' => '图书商城',
"domain" => [
'www' => 'http://super.nat300.top/',
'm' => 'http://super.nat300.top/m',
'web' => 'http://super.nat300.top/web',
'weixin' => 'http://super.nat300.top/weixin',
],
"upload" => [
'avatar' => "/uploads/avatar",
'brand' => "/uploads/brand",
'book' => "/uploads/book",
],
"weixin" => [
"appid" => 'wxc01ba9b834be5023',
"sk" => 'da1e24dd41859f769b23c089f827268c',
"token" => 'tomalang689',
"aeskey" => 'P6PaB6bPrRzKkva5lq6kHWtYkOOlVhYq4fh1iR7LMKB',
'pay' => [
'key' => '',
'mch_id' => '',
'notify_url' => [
'm' => '/pay/callback'
]
]
]
];
|
<title><?=Yii::$app->params['title'];?></title> |
<?php return [ 'title' => '编程商城', 'domain' => [ 'www' => 'http://book_my.aa.test', 'm' => 'http://book_my.aa.test/m', 'web' => 'http://book_my.aa.test/web' ], |
public static function buildMUrl( $path,$params = [] ){
$domain_config = Yii::$app->params['domain'];
$path = Url::toRoute(array_merge([ $path ],$params));
return $domain_config['m'] .$path;
}
|
1、common/config/params.php
2、common/config/params-local.php
3、frontend/config/params.php
4、frontend/config/params-local.php
The controller ID is:
<?= $this->context->id ?> |
2019-06-28
2019-10-03
2019-07-04
2019-06-22
2019-02-12