$this->set('title', 'Title Name'); not working in CakePHP 3.x

后端 未结 6 1120
温柔的废话
温柔的废话 2021-01-11 19:42

Basically in default.ctp I have this for my title:


  <?= $this->fetch(\'title\') ?>

And inside of the

6条回答
  •  旧时难觅i
    2021-01-11 19:47

    Just for completion, I came across a situation where a malformed .js script with undefined variables referenced between resulted in the tags being posted to DOM (showed in page source) but Chrome, Firefox and (from memory) MSIE all failed to deliver the content of the title to the APP UI, again from memory - iOS mobile was unaffected.

提交回复
热议问题