Welcome Guest, Not a member yet? Register   Sign In
How to implement Server Side DataTable in CI4
#6

(08-02-2020, 01:45 PM)abatrans Wrote: Try to remove the (:any) from the routing statement

Code:
$routes->add('/product-code/showProductCodes(:any)', 'Code8ProductCode::showProductCodes');

change to:
Code:
$routes->add('/product-code/showProductCodes', 'Code8ProductCode::showProductCodes');


Also I noticed that there is no / before the (:any), so to my understanding that url can be anything as long as it start with "showProductCodes".

Try wiht POST and GET un routes:

Code:
$routes->get('/product-code/showProductCodes(:any)', 'Code8ProductCode::showProductCodes');

change to:
Code:
$routes->post('/product-code/showProductCodes', 'Code8ProductCode::showProductCodes');
Reply


Messages In This Thread
RE: How to implement Server Side DataTable in CI4 - by nicojmb - 08-03-2020, 02:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB