Skip to content

Improved Routing & Project Structure #1

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

SiroDaves
Copy link

  • Switched from ?route=/path to clean URLs like /login
  • Renamed src to app, created Core and moved DependencyContainer to it
  • Created 'View.php to manage views in a better and cleaner manner.
  • Moved index.php to the public/ folder for better structure
  • Updated .htaccess to support clean URL routing with mod_rewrite
  • Refactored RouteHandler to use REQUEST_URI instead of query params
  • Adjusted helper functions (like route()) to match the new URL format
  • Fixed path issues with views and autoloaded files

@dfm18
Copy link
Owner

dfm18 commented May 31, 2025

Hello,

Thank you for your interest in this template and for considering it for your projects. The adjustments you made were necessary and are appreciated. However, it appears you uploaded some images and files (JS and CSS) that are not aligned with the template's purpose.

In particular, the minor changes commit included irrelevant files, such as unnecessary graphic resources and frontend libraries. It would be ideal if you could modify that commit to include only the relevant changes.

Please note that this template is focused on server-side development, so it does not include frontend libraries or assets by default.

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

Successfully merging this pull request may close these issues.

2 participants