Log message #4016621

# At Username Text
# Apr 16th 2017, 07:49 theaxiom it also helps me sometimes to talk in chat to solve my own problems
# Apr 16th 2017, 07:49 hiromi2424 same name UsersController, AppController is not a strange design
# Apr 16th 2017, 07:49 theaxiom some of it is pushing my boundaries, which is a good thing :slightly_smiling_face:
# Apr 16th 2017, 07:48 hiromi2424 ok
# Apr 16th 2017, 07:48 theaxiom just figuring this all out
# Apr 16th 2017, 07:48 hiromi2424 yeah nice. what’s wrong?
# Apr 16th 2017, 07:48 theaxiom and then it will automatically add your admin features to the admin
# Apr 16th 2017, 07:47 theaxiom you can include `admin` controllers in your plugin which extend the `admin` `AppController`
# Apr 16th 2017, 07:47 theaxiom for example, let's say you already created a CakePHP 3 plugin
# Apr 16th 2017, 07:47 theaxiom it has no opinions
# Apr 16th 2017, 07:47 theaxiom you install only the features you want via plugins
# Apr 16th 2017, 07:46 theaxiom and `users` as plugins
# Apr 16th 2017, 07:46 theaxiom then it has `admin`
# Apr 16th 2017, 07:46 theaxiom it has a core
# Apr 16th 2017, 07:46 theaxiom I am building a social framework, kind of like social network + CMS powered entirely by plugins
# Apr 16th 2017, 07:45 theaxiom https://socialplex.us
# Apr 16th 2017, 07:45 theaxiom no
# Apr 16th 2017, 07:45 hiromi2424 ah `admin` prefix is in your application, right?
# Apr 16th 2017, 07:45 theaxiom and some plugins will come from userland
# Apr 16th 2017, 07:45 theaxiom the `admin` interface is dynamic, based on installed plugins
# Apr 16th 2017, 07:45 theaxiom it has to come with the `users` plugin
# Apr 16th 2017, 07:45 theaxiom I can't put it in `admin` plugin
# Apr 16th 2017, 07:44 hiromi2424 I guess above places.
# Apr 16th 2017, 07:44 hiromi2424 plugins/Admin/src/Controller/UsersController plugins/Users/src/Controller/UsersController
# Apr 16th 2017, 07:43 theaxiom the `admin` plugin can't know in advance about other plugins, therefore it cannot already contain UsersController
# Apr 16th 2017, 07:43 hiromi2424 and routes can be defined as different since there are namespace
# Apr 16th 2017, 07:42 hiromi2424 I want to say is place src/Controller/UsersController for both plugins
# Apr 16th 2017, 07:42 theaxiom I was asking about best practice on how to accomplish this
# Apr 16th 2017, 07:42 hiromi2424 no…
# Apr 16th 2017, 07:41 theaxiom yeah but not in the same folder
# Apr 16th 2017, 07:41 hiromi2424 it’s ok to have same name UsersController
# Apr 16th 2017, 07:41 theaxiom so I put it in `src/Controller/Admin` and am using prefix routing
# Apr 16th 2017, 07:41 theaxiom so I had to figure out where to put the admin UsersController
# Apr 16th 2017, 07:41 hiromi2424 crud-view plugin is seems to be same staff
# Apr 16th 2017, 07:41 theaxiom yeah, but that means, for instance, the `users` plugin is going to have 2 `UsersController.php`
# Apr 16th 2017, 07:41 hiromi2424 dependencies for each plugins is not a strange way
# Apr 16th 2017, 07:40 hiromi2424 ok that’s fine
# Apr 16th 2017, 07:40 theaxiom the `admin` plugin is just basically using the crud and crud-view plugins, the other plugins are just providing controllers so the crud plugin can automatically generate/extend the admin interface
# Apr 16th 2017, 07:39 hiromi2424 How is component to share implementation?
# Apr 16th 2017, 07:37 theaxiom some controllers in `users` plugin extend `admin` plugin `AppController`
# Apr 16th 2017, 07:37 theaxiom since I am extending classes cross-plugin