Is there anyone knows how to extend the set_relation()
?
Here is the idea, base on the example of Grocery Crud employee and offices table
$crud->set_relation('officeCode','offices','city');
the code output will show all city in dropdown, but I want to extent the set_relation()
to filter all city by state to show in dropdown?
for example I want to show all city of Arizona state in dropdown, Does anyone done this before using grocery crud?
reference example: