crud-admin-generator
crud-admin-generator copied to clipboard
Spaces in column gives me Ajax error and 500 (Internal Server Error)
As soon as I have a space in column name, for example "End of Life" I'm geting this error when entering the List page;
"DataTables warning: table id=inventory_list - Ajax error. For more information about this error, please see http://datatables.net/tn/7"
When I remove the space it works. It doesn't look too good having to use "End_of_Life" for list page to work. Is it possible to have the list page to resolve underscores as spaces?
Thanks
Edit: Actually the Create page resolves underscores to spaces. And my column ISV_Account_Name resolves to "I s v account name", little bit weird? :P
No space in table name please u_u"
So yes, you should use underscore table_name
, and it's resolve in space in column displaying and some title.
For the list of table, it may be a good idea to resolve them to... (and take a look on how we deal with them around as it seem to be a little weird)
Can you sort this out please :) I know its not correct practice, but I feel this project shouldn't bother trying to enforce that. Just add the ' ' around all column names - I would do it myself and push it but i have no idea about this twig stuff
Work arounds can be fine, as long as they're documented. This project lacks proper documentation, for instance, took me some while to find how to create table relations..until I found the instructions in the "sales pitch" on http://crud-admin-generator.com/ and the readme file gave barely no clues to anything.