sumitpore / mvc-plugin-boilerplate-for-wordpress

An MVC WordPress Plugin Boilerplate with clear separation of concerns. Will make your experience of creating a WordPress Plugin enjoyable!
176 stars 22 forks source link

calling wrong controller when registering two frontend routes #27

Open wpplumber opened 4 years ago

wpplumber commented 4 years ago

while expecting to have two separate calls toward frontends dashboard and loggin when visiting https://domain/dashboard/ called log register_hook called and second other function on dashboard controller called!

$router
    ->register_route_of_type(ROUTE_TYPE::LATE_FRONTEND_WITH_POSSIBLE_AJAX)
    ->with_controller('Dashboard@register_hook_callbacks')..
    $router
    ->register_route_of_type(ROUTE_TYPE::FRONTEND)
    ->with_controller('Logginn@loggin_register_hook_callbacks')
    // ->with_model('Logginn')
    ->with_view('Logginn');
wpplumber commented 4 years ago

seems routes.php call defined routes multiple times not the current route example dashboard for https://domain/dashboard/!

lazardanlucian commented 10 months ago

why are people trying to mvc wordpress ? this whole project is a pita