⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Use of $crud->columns() giving empty grids



ChristianSwier
  • profile picture
  • Member

Posted 11 May 2017 - 09:56 AM

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.


Amit Shah
  • profile picture
  • Member

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 :)


ChristianSwier
  • profile picture
  • Member

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?