Home  >  Q&A  >  body text

return $this ->fetch('index); is not displayed in the browser

return $this ->fetch('index');

好的名字被用光了好的名字被用光了2625 days ago2145

reply all(4)I'll reply

  • 浮尘

    浮尘2017-12-26 17:04:05

    There is template in phpstorm. You see it is gray. In fact, this word does not exist. It is just a parameter mark. Therefore, you cannot add template when writing your own. Just leave it blank or write an 'index' parameter. Just fine

    reply
    0
  • jim713

    jim7132017-10-09 21:47:40

    Is it true that the index class is not inherited from the controller?

    reply
    0
  • 呆呆熊去哪了

    呆呆熊去哪了2017-09-05 09:06:23

    return $this->view->fetch('index'); try

    reply
    0
  • yestrue

    This is correct, hold the grass and add template: an error is reported, the reason is unknown. Master, can you leave a WeChat message to study together?

    yestrue · 2017-10-29 23:51:41
  • Cancelreply