How to use controllers and model code of theme used as plugin in Cakephp 3


#1

I am new to cakephp, and started working on ecommerce site. Created plugin for theme Admin panel, the structure of admin panel theme plugin is as follows:

plugins/admin_theme/

|_ config
|_ src
|_ Controller
|AppController.php
|
Template
|Layout
|default.ctp
|
tests
|
webroot

Now the confusion is where should i put my controller and model for AdminPanel theme, in the main src folder if i put all my code it will be mixed with my other application code, and the second thing i want to create other theme for my main application, what is the correct way to use multiple plugin and the most important where to put the coding part (i.e. controllers and models) if i want to use two theme.