Closed krishna-gujjjar closed 1 year ago
Are user_list
and other keys in your array named routes? The User List's named route should be user-list
(see src/Users/Config/Routes.php
):
// Manage Users
$routes->match(['get', 'post'], 'users', 'UserController::list', ['as' => 'user-list']);
@dgvirtual Yes, there exist all of those named routes in there module's Route Config file.
product-list
in modules/Products/Config/Routes.php
$route->match(['get', 'post'], 'products', [ProductController::class, 'list'], ['as' => 'product-list']);
type-list
in modules/Base/Config/Routes.php
// Manage Types
$route->match(['get', 'post'], 'types', [TypeController::class, 'list'], ['as' => 'type-list']);
category-list
in modules/Category/Config/Routes.php
$route->match(['get', 'post'], 'categories', [CategoryController::class, 'list'], ['as' => 'category-list']);
and user_list
in vendor/lonnieezell/bonfire/src/Users/Config/Routes.php
// Manage Users
$routes->match(['get', 'post'], 'users', 'UserController::list', ['as' => 'user-list']);
Ok, so, they all contain dashes, not undescores. But you use underscores in $menuWeights property
Ok, so, they all contain dashes, not undescores. But you use underscores in $menuWeights property
Oops, Old habit of mine. I am mostly use underscores rather than dash. I replaced routes alias with underscores and it working fine.
Thanks man!
I tried
$menuWeight
in theapp/config/Bonfire.php
alsoweight
ofMenuItem
in themodules/Base/Module.php
, but nothing working to ordering it.I want the menu order:
Here is the screenshot:
am i missing something?