Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Would v2 have a router like Laravel's?
masterpreshy
August 2017
For example, if i want to serve a static page like about us page:
Route::get('/about', function() {
view('about');
});
?
:)
Harro
August 2017
Accepted Answer
You can already do that, see
https://fuelphp.com/docs/general/routing.html#/inline_routes
In case of your static page
// routes.php
return array(
'about' => function () {
return View::forge('about');
},
};
Where do you think Laravel got this from?
;-)
masterpreshy
August 2017
oh wow! i need to sleep on the docs!
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
August 2017
masterpreshy
August 2017