CakePHP View including other views

后端 未结 7 2192
盖世英雄少女心
盖世英雄少女心 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.

    0 讨论(0)
提交回复
热议问题