The use of $crud->columns(array()) has been giving me trouble. When used it will give blank column fields in the grid. When i comment the $crud->columns line it will show all fields without a problem. I am not for sure but it looks like it is some problem with using it in combination with n_n relationship fields.
Use of $crud->columns() giving empty grids
- Single Page
Posted 11 May 2017 - 09:56 AM
Posted 16 May 2017 - 12:13 PM
https://www.grocerycrud.com/documentation/options_functions/columns
Please refer to the document - it clearly mentions u need to pass multiples of strings not array of strings...rectify the same and your issue will be solved
Happy GCing :)
Posted 23 May 2017 - 06:24 AM
https://www.grocerycrud.com/documentation/options_functions/columns
Please refer to the document - it clearly mentions u need to pass multiples of strings not array of strings...rectify the same and your issue will be solved
Happy GCing :)
Thanks for your answer, i have now fixed it with your solution. I don't understand why it uses an array in the example?