I have controller called BlogsController with method home.
I have created a simple route in route.php
<?php
use Cake\Routing\Router;
Router::connect('/', ['controller' => 'Blogs', 'action' => 'home']);
Now in browser for localhost/cake_myapp
I am getting error
A route matching "array ( 'controller' => 'Blogs', 'action' => 'view', 0 => 1, 'plugin' => NULL, '_ext' => NULL, )" could not be found.
Why it's going for view method ?
I have checked cake routes
How can I solve this problem ?