-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP sample source code #16
Comments
plus 1 for a better example I've tried adding an ajax method that returns this JSON, but still I see nothing on the page
|
I kind of worked it out actually. The JSON needs to be like this:
The online demo for example works against this API: http://gtreetable2.gilek.net/index.php?r=site%2FnodeChildren&id=0 That's for level 0. Then subsequent calls need to pass an object ID, eg http://gtreetable2.gilek.net/index.php?r=site%2FnodeChildren&id=4092 |
Basically, you need to pass integers to both ID and Level fields. If you try to pass strings it will fail. |
Agreed, the example and documentation is really bad. Almost impossible to determine how this is actually used. What is the "template"? |
guys the example, using Yii2 extension aka https://github.com/gilek/yii2-gtreetable @gilek rename .pdf to .zip dont know why, couldnt uploaded as .zip |
Hello,
your treetable is very nice, but the sample you provided which is downloadable is not enough due to the absence of the PHP file or on how to load it from JSON.
can you help by provided the files?
thank you so much
The text was updated successfully, but these errors were encountered: