Routes

Custom routes must created in \brixy\App\Controllers\custom\Routes.php file.

$routes->add('add_some_option', '\brixy\App\Controllers\custom\product_options::add_option');

url: https://your_domain_name/add_some_option

$routes->add('edit_some_option/(:any)', '\brixy\App\Controllers\custom\product_options::edit_option/$1');

url: https://your_domain_name/edit_some_option/3

You must pass one parameter to the edit_option method.

add_some_option, edit_some_option - url segment. Can be any string.

product_options - controller name. It must be spelled exactly as the controller file name. Capital letters, if any, matter.

add_option, edit_option - methods name.

$routes->add('edit_option_type/(:any)/(:any)', '\brixy\App\Controllers\custom\product_options::edit_option_type/$1/$2');

url: https://your_domain_name/edit_some_option/3/2

You must pass two parameters to the edit_option_type method.