CakePHP View including other views

后端 未结 7 2190
盖世英雄少女心
盖世英雄少女心 2021-02-07 12:22

I have a CakePHP application that in some moment will show a view with product media (pictures or videos) I want to know if, there is someway to include another view that threat

7条回答
  •  抹茶落季
    2021-02-07 12:37

    For CakePHP 2.x

    New for Cake 2.x is the abilty to extend a given view. So while elements are great for having little bits of reusable code, extending a view allows you to reuse whole views.

    See the manual for more/better information

    http://book.cakephp.org/2.0/en/views.html#extending-views

提交回复
热议问题