The root of the tree (images) is loaded with a GET request on page load. When the users expands a folder, a new GET request is issued to fetch its contents and the response is cached. Creating/deleting a tree item will revert all changes in the tree, because the JsonRestStore sends a GET first and the server response does not contain these previous changes (in this demo they are simply not implemented. The server just sends a 200 or 500.
This demo belongs to part 2 of the tutorial: REST with Dojo and PHP.
Download the zipped demo file of part 1dojo-jsonreststore.zip