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

Frontend routes don't exist #20

Open
rafa-lobo opened this issue Aug 2, 2023 · 2 comments
Open

Frontend routes don't exist #20

rafa-lobo opened this issue Aug 2, 2023 · 2 comments

Comments

@rafa-lobo
Copy link

Hi, I have been testing the package (which is great, the simplest and most effective one I've browsed so far), but I can't seem to be able to load the frontend pages. I am able to create the pages, save them to the DB, and everything else, but when I access the desired route it returns 404.

My config file is:

return [
    // routes configurations
    'builder_prefix' => 'builder', // prefix for builder

    'middleware' => null, // middleware for builder

    'frontend_prefix' => '', // prefix for frontend

    /* Define additional translation languages. */
    'languages' => ['pt'],

];

I have created a page with slug build-test:
image

But when I enter the page I get 404 (no routes registered as well):
http://localhost/build-test

Am I missing something here? Should I manually create the controllers? Nothing mentions this in the docs.

@anditriana
Copy link

It seems that the FrontendController is empty so it is not rendering anything
I can get it working by manually create a controller and a view to display di html output

@core45
Copy link

core45 commented May 18, 2024

@anditriana That is great. Can you share an example of the controller which works for you please?

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

3 participants