wp-router icon indicating copy to clipboard operation
wp-router copied to clipboard

How to create a route for the home page ?

Open Antoinebr opened this issue 8 years ago • 0 comments

Hi I use your plugin in one of my project (great plugin btw 👍 )

And i try to create a route for the HomePage

I tried :

$wp_router->get( array(
  'uri'  => '/',
  'uses' => 'crm\Controllers\Clients@clientsHome'
));

But it's not working :(

Do you have an idea ?

Thank you a lot for your code !

Antoine

Antoinebr avatar Feb 26 '17 21:02 Antoinebr