Continuing with the theme of a previous article, here is another ExtJS and PHP sample. This time my PHP page will be serving data to populate a grid panel.
Like the combo box in the previous post, the grid is going to display a list of categories sent from the webpage. This is the grid panel’s definition:
The JSON representation of the categories data will have the following form:
The categoriesStore data store points to the PHP page where I will retrieve the categories information from a MySQL database:
And this is the PHP page: