我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在Yii2应用程序中使用文本

I'm trying to echo a message in the title with no luck, here is my title code.

<title><?php echo implode(' | ', array_filter([$this->title, Yii::$app->get('systemState')->get('siteTitle')])) ?></title>

it should remains exactly the same but show a message before the "systemState".

In current status it shows the title as "flash game | website for flash games".

What i want it to show is " play flash game | website for flash games".

近期文章

  • 如何安全地存储webserver密钥(Firebase,JavaScript,PHP)
  • joomla执行请求以查看joomla模板中的com_k2项
  • 现场服务器上的cURL非常慢,但在localhost上非常快
  • PHP / JQuery和HTML如何提交多个克隆表单
  • Laravel 5传递Form $请求作为控制器中的数组
  • 从表单获取GET数据的iFrame加载了错误的源代码
  • PHP日期参数与SQLSRV
  • 如何提交WP用户后,如何禁用或隐藏调查?
  • JpGraph错误:25001此PHP安装未配置GD库
  • Wordpress插件 - 发布帖子很慢
  • 如何在OpenCart 1.5.6.4中的订单确认电子邮件中添加运费总额
  • 带WHMCS的PHP - 获取输入字段
  • 按多个元值排序Wordpress帖子
  • 如何过滤脚本的输出?
  • 多个实现语句与接口扩展
  • Index.php无法访问私有文件
  • NetBeans PHP运行当前页面
  • 编辑:多个Wordpress下拉列表和过滤器
  • 使用jQuery对外部域的AJAX POST请求
  • php simplexml分组对象

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华