search

Home  >  Q&A  >  body text

Why do you fill in: url (article/index) instead of: url (article/article_list) when connecting to the information list?

Why do you fill in: url (article/index) instead of: url (article/article_list) when connecting to the information list?

小远小远2405 days ago1714

reply all(2)I'll reply

  • 陈磊

    陈磊2018-05-10 18:43:19

    //渲染Article时index指向了article_list
    class Article extends Base
    {
        public function index()
        {
            $this ->fetch('article_list');
        }
    }


    reply
    1
  • 陈磊

    少了return $this ->fetch('article_list');

    陈磊 · 2018-05-10 18:45:47
  • Cancelreply