Hello,
I wanted to have after every url a ".html" after.
It works fine but it automaticly adds on js,css urls the ".html" aswell.
So no script and styling is seeable.
Anyone have an idea?
The idea is that you use the Asset class to generate your asset code, not to use Uri::create(). And this could well be an issue in 1.0. I know I fixed this issue, but that could be after the release of 1.0.
Thank you, this solved my problem.
Offtopic Question:
Is there some way to add routes on runtime
to fuel?
For example a plugin or so which want some url's for itself.
Depends on what you mean by 'runtime'.
If you mean adding a route in memory, then yes, that is possible through the Router::add() method. Altough not very useful, unless you do this before the Request class process the request.
If you mean code that updates your config/routes.php, that is possible through the Config class. Load the routes, update them, and save them again.