ypnos-web / cakephp-datatables

CakePHP3 Plugin for DataTables plug-in for jQuery
MIT License
27 stars 24 forks source link

Column ordering requested, but no column definitions provided. #60

Closed renjithjr closed 6 years ago

renjithjr commented 6 years ago

Generating column values on the view and not from the controller,produces the above mentioned error.

Is it not possible to assign column values from the view and not on the controller?

ypnos-web commented 6 years ago

If you want a table that is operated client-side only, you do not need column definitions in controller. However if your table uses server-side processing the controller needs to know. It is a security measure.

Have a look at my comment here on how this can be done in an elegant way, and you only have to define few of the colum properties in the controller.