How to load another model ctp file in another one controllor?


#1

How to load another model ctp file in another one controllor?
In my scenario I want load another model ctp file (table) in my current controller, is it passible or any another way to do this?

Thanks advance.


#2

Hey @sathishcake,

just use the render() method in your Controller Action.

https://book.cakephp.org/3.0/en/controllers.html#rendering-a-view

When you want a complete DIFFERENT Layout

https://book.cakephp.org/3.0/en/views.html#layouts
Read this Docs, they gonna help you with Your decission how to handle different Layouts, Views and Elements based on your needs in a specific (Plugin) Controller and Controller Action.

:v:


#3

Hey,

Thanks for your reply.