Best Practices: What's the Best Way for Constructing Headers and Footers?

前端 未结 4 866
花落未央
花落未央 2021-01-30 07:46

What\'s the best way for constructing headers, and footers? Should you call it all from the controller, or include from the view file? I\'m using CodeIgniter, and I\'m wanting

4条回答
  •  自闭症患者
    2021-01-30 08:03

    I think the first way you are doing it is cleaner. Simply from a point of view of knowing that is going to be rendered. Rather than having to enter the view file to find the rest.

提交回复
热议问题