Welcome Guest, Not a member yet? Register   Sign In
Add variables in routes with view
#1
Wink 

Add the ability to pass simple variables in the route for views. Sometimes we derive a route from a template where we want to pass a title or fixed variable, but it's not possible.

An example of how this would be used:

PHP Code:
$routes->view('/''login', ['title' => 'Login''message' => 'Welcome to login']);

$routes->view('change-password''change-pass', ['title' => 'Change Password']); 
Reply


Messages In This Thread
Add variables in routes with view - by witezak - 10-06-2024, 02:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB