Skip to profile content
I found a simple solution although, as is often the case with the new version of grocerycrud, it is not documented and you need to reverse engineer the sources. Just define a new custom model, which is actually the default one. But in this case, you can pass the correct DB connection to the constr…
Hi all, in the past version of Codeigniter + GroceryCrud switching database was a simply as this: $this->db = $this->load->database(‘new_db’, true); Now $crud = new GroceryCrud(); $this->db = db_connect(‘new_db’); seems not working: the accessed db remains the default one. Any clues?
Hi, Currently I’m using a database with a table and set a relation on a second table (list of products at time t) I would like to get the “live list of products” from a second and external database/table. How can I achieve this ?
How can I set default (or empty) value for a dropdown in add state that it comes from a setRelation? Like this (GroceryCrud 2.0.2 version) [image] Thanks!