acorn
acorn copied to clipboard
Routing on this beautiful framework
Hello, thank you for the efforts of the programmers of this framework, I have a suggestion for adding "router" to make this framework powerful, I've written a router inspired by Laravel that might be helpful. here
- Best regards
I think is router for pages is not necessary. Better solution is router for AJAX actions and Rest API actions. Wordpress has good enough router system for pages, templates etc.
Routing was added as an experimental feature in #249. 🎉
You'll need to add the following environment variable.
ACORN_ENABLE_EXPIRIMENTAL_ROUTER=true
There are currently no docs for this, but the short version is that you'll have to create routes/web.php and add some routes.