acorn icon indicating copy to clipboard operation
acorn copied to clipboard

Routing on this beautiful framework

Open smarteist opened this issue 4 years ago • 1 comments

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

smarteist avatar Jun 06 '20 20:06 smarteist

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.

plumthedev avatar Nov 20 '20 12:11 plumthedev

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.

QWp6t avatar Feb 03 '23 23:02 QWp6t