Log message #4016635

# At Username Text
# Apr 16th 2017, 07:56 hiromi2424 ok it will add to collection
# Apr 16th 2017, 07:56 theaxiom `static::scope($path, $params, $callback);`
# Apr 16th 2017, 07:56 theaxiom from what I can tell, it doesn't override
# Apr 16th 2017, 07:54 theaxiom thanks :slightly_smiling_face:
# Apr 16th 2017, 07:54 hiromi2424 I don’t think it override… I will look into core code.
# Apr 16th 2017, 07:52 theaxiom I just want to make sure I won't over-write the `admin` prefix.
# Apr 16th 2017, 07:52 theaxiom For instance, if I put that in a `users` plugin, then a `feed` plugin, etc, can they all point to admin prefix?
# Apr 16th 2017, 07:52 theaxiom Do those merge?
# Apr 16th 2017, 07:51 hiromi2424 alternative: Router::prefix(‘admin’)
# Apr 16th 2017, 07:51 theaxiom the `UsersController` which is in `src/Controller/Admin` will be in the `admin` plugin namespace `namespace SocialPlexus\Users\Controller\Admin` and use `use SocialPlexus\Admin\Controller\AppController`
# Apr 16th 2017, 07:50 theaxiom example: `$routes->connect('/admin/users/:action', ['controller' => 'Users', 'plugin' => 'SocialPlexus/Users', 'prefix' => 'Admin']);`
# Apr 16th 2017, 07:50 theaxiom and include prefix routing in the `users` plugin to add the `/admin/users` route
# Apr 16th 2017, 07:50 theaxiom so for the `users` plugin, I am going to put the `admin` `UsersController` in `src/Controller/Admin`
# Apr 16th 2017, 07:49 theaxiom because it forces me to explain my problem
# 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