I’ve been reading hydra’s and djzone’s blog as a reference for starting a cakephp+extjs application. Their tutorials about building the grid using json are almost the same. Following their tutorial step-by-step, I failed to obtained the desired result. That is – a grid showing my data.
I think the root cause of my problem is when calling the url containing my json data, extjs is not able to recognize it as a json data. (Am i going in circles? I, myself, don’t even know how to put this problem in words.)
Coz, when i try to change the url in the data store into a page outside my cakephp app, the data inside the grid shows. But, what the heck, i have to be able to dynamically change the json data based on the content of the users table and having a static json array won’t do. I need, of course, cakephp for this.
So, I’ve been thinking on the points where I did wrong.
Retracing my steps, i think that I have followed hydra’s and djzone’s instructions. I almost wanted to restart my cakephp app from scratch like going back to the versions of cakephp and extjs they used just to see where did I go wrong.
This is when i paid attention to the response received by my page.
And I think I got where my mistakes were.
With these, i was able to make my grid work.
This article does not tell you how to build your extjs grid inside your cakephp app, because many good people have been contributing to the community for this purpose. I think, I wrote this just in case, someone like me has been following the blogs of many people and yet still don’t know where they had gone wrong, and maybe they have the same situation as mine.
Kanpai!
