Forum /
Ext GWT Community Forums (2.x) /
Ext GWT: Discussion /
wrapping php site with GXT interface
wrapping php site with GXT interface
Hi All,
I have a php website and I want to have an GXT interface to it, what is the best way to deal with this, I do not want to write the my backend in java I want to stick with what I have...
Thanks in advance...
So you want to rewrite your frontend and stay with your old backened?
Yes this is the plan , is that possible and what is the best way to achieve it?
Well, what datatype does your backend return? JSON or XML? GXT ships with a JsonReader and a XmlReader. Take a look at this example:
http://www.sencha.com/examples/explorer.html#jsongrid
http://www.sencha.com/examples/explorer.html#xmlgrid
This combobox is even filled with a php backend: http://www.sencha.com/examples/explo...vancedcombobox
JSON mostly, will I be able to use all the features in the GXT API, or just some of them?
will I be able to use all the features in the GXT API, or just some of them?
Nobody will be able to answer this as you have not told us what you are actually doing. But normally you should be able to reuse your old backend.
My Idea is to wrap my current php functions to return JSON Strings instead of rendering php/html page and call them using requestbuilder, then converting them to Objects extending ModelData (this is if necessary of course)...
then converting them to Objects extending ModelData (this is if necessary of course)...
You can use JsonReader for this. This should work.
I'll give it a shot .
Thanks for the help...
Similar Threads
By marrrck in forum Ext GWT: Discussion
Replies: 8
Last Post: 29 Nov 2011, 1:32 AM
By pfisk in forum Community Discussion
Replies: 0
Last Post: 27 Apr 2010, 12:17 PM
By baume Mercier Classima in forum Community Discussion
Replies: 4
Last Post: 18 Sep 2009, 6:22 AM
By albeva in forum Community Discussion
Replies: 3
Last Post: 9 Nov 2007, 5:01 AM
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us