how set_crud_url_path and use of delete
- Single Page
Posted 24 November 2016 - 19:07 PM
Posted 24 November 2016 - 19:22 PM
$state = $crud->getState();
if($state == 'list')
{
redirect('your_controller/elencoUtenti');
}
Posted 25 November 2016 - 08:10 AM
no, but yor solution seems nice :-D
Reading from the doc ...
set_crud_url_path - void set_crud_url_path(string $crud_url_path [, string $list_url_path ])
I think you can try to give the second parameter for the list url path.
After this i'm going to try, if have news i'll bring here
Posted 25 November 2016 - 08:19 AM
It looks good. The second parameter control the go back to list button, so you can always go back to your datatables list wiev.
One example of use i found is in /topic/1790-grocerycrud-multigrid-and-set-model-solved/.
Have a nice week ;-)