Thank you Rachman,
it was problem in plugin routes.php.
I was not working with new versions before like version 3.5, here is some sample tutorial for others who have same problem.
1.
bin/cake bake model Satellites --plugin Somepluginname --table satellites --no-fixture --no-test --force
bin/cake bake controller Satellites --plugin Somepluginname --prefix Admin --theme Croogo/Core --no-test --force
bin/cake bake template Satellites --plugin Somepluginname --prefix Admin --theme Croogo/Core --force
2. Plugin/config/routes.php
use Cake\Routing\RouteBuilder;
use Croogo\Core\Router;
Router::plugin('Somepluginname', ['path' => '/'], function (RouteBuilder $routeBuilder) {
$routeBuilder->prefix('admin', function (RouteBuilder $routeBuilder) {
$routeBuilder->extensions(['json']);
$routeBuilder->connect('/admin/channels', [
'plugin' => 'Somepluginname',
'controller' => 'Channels',
'action' => 'index',
]);
$routeBuilder->fallbacks();
});
Router::build($routeBuilder, '/channels', [
'plugin' => 'Somepluginname',
'controller' => 'Channels',
'action' => 'index',
]);
$routeBuilder->connect('/locale', ['controller' => ' Users', 'action' => 'languageChange']);
$routeBuilder->connect('/', ['controller' => 'Games', 'action' => 'main']);
$routeBuilder->connect('/main', ['controller' => 'Games', 'action' => 'main']);
$routeBuilder->fallbacks();
});
3. if not working then try to comment out this part. //'Crud.Search', in vendor/croogo/croogo/Core/src/Controller/AppController.