This is inside my Column ‘ratings’ @myDataBase
{
"oneStar": 0,
"twoStar": 0,
"threeStar": 1,
"fourStar": 2,
"fiveStar": 10
}
This is what is inserted really.
It’s a json type column
"{"oneStar":0,"twoStar":0,"threeStar":1,"fourStar":2,"fiveStar":10}"
I wanted to show this at Create Method
I’ve tried:
$this->crud->addField(['name' => 'ratings', 'type' => 'table']);
Also:
$this->crud->addField(['name' => 'ratings', 'type' => 'table']);
But it does not shows as I wanted
How can I do that???