Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calling wrong controller when registering two frontend routes #27

Open
wpplumber opened this issue Apr 25, 2020 · 2 comments
Open

calling wrong controller when registering two frontend routes #27

wpplumber opened this issue Apr 25, 2020 · 2 comments

Comments

@wpplumber
Copy link

wpplumber commented Apr 25, 2020

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
Copy link
Author

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

@lazardanlucian
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants