I need to know where to put controller and model for creating Themes as plugins in cakephp 3
I am working on Cakephp 3. I am little bit confused. I have created theme as a plugin and i want to know whether to code it in theme folder or main project folder. I want to know the general rule how to work with theme when used as a plugin, its controllers and model will be in theme folder or i have to use main application controller folder.