CakePHP View including other views

后端 未结 7 2172
盖世英雄少女心
盖世英雄少女心 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 13:03

    In CakePHP 3.x you can simple use:

    $this->render('view')
    

    This will render the view from the same directory as parent view.

提交回复
热议问题