flightphp / core

An extensible micro-framework for PHP
https://docs.flightphp.com
MIT License
2.6k stars 407 forks source link

Unable to load static files while using route with parameter #448

Closed Sokhavuth closed 6 months ago

Sokhavuth commented 3 years ago

Static files are not loaded while using route with parameter. In Node.js and in Python, every framework gives us the options to choose folder for "views" and static files such as css, js, and image files. In those frameworks, the default folders for views and static files are "views" and "public". And without static files, there won't be template.

mfrederico commented 11 months ago

This sounds like a webserver configuration issue, not a flightphp issue.

n0nag0n commented 6 months ago

Yes, this is a webserver issue, not a framework issue. Flight wasn't meant to handle service static content because webservers do this in a way more efficient way.