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

Routing! #830

Closed
abmmhasan opened this issue Oct 29, 2016 · 1 comment
Closed

Routing! #830

abmmhasan opened this issue Oct 29, 2016 · 1 comment

Comments

@abmmhasan
Copy link
Contributor

abmmhasan commented Oct 29, 2016

Are you controlling the Routing using only core/view.php file? As I think so! If I'm wrong is there any other files involved on routing?
I was reviewing (for the first time) the huge 3.0 project!

@panique
Copy link
Owner

panique commented Oct 29, 2016

Hi there, no sorry the routing is more or less done via the logic in https://github.com/panique/huge/blob/master/application/core/Application.php, so when the user hits a URL like ".../user/view/17", then the framework will look if there's a controller called "UserController" with a method "view", call this and pass the parameter "17" to the "view" method.

Most big frameworks have real routing where you can configurate where exactly every URL path should go to, but in this frameworks it's just made in this supersimple way!

@panique panique closed this as completed Dec 4, 2016
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