I dont know how to make the grid view in Yii. So come here to ask about the solution to change the work from the php, html and javascript to yii.
1 - The first thing is about the basic table, which I already made by php and javascript. It simply has 2 dimensions call A and B. So it’s easy to me to create them by some foreach loops method and identify the slot of the tables. With normal php and html, Im able to assign the class name and id number for the table tag, therefore I could use javascript to change the color of the slot, and id number( example: A3B2) helps me to recognize the slot, so I could put the data inside the slot. My question is how to draw this table in Yii, and how to add the attribute: class, id and so on to the tag of the table by Yii. Finally, how can I identify the slot or that means how to find and use these attributes to perform some javascript or change the css by using Yii frame-work.
2- As the second picture shows, you can see that it has another value G. One G has many B, so G–>B. In the first problem I described above, I just have to use an array $slot[$a][$b] and run some loops then all done. But now it’s hard for me to select exactly what the slot is and how to draw them as the picture.
3- If I have another dimension is C, so of course, the slot will have id is slot[a][b][c]. But I dont know how to draw them by neither php or html. Anyone who familiar with that, please give me some ideas to solve it. It could be awesome if the solution is able to run on the yii.