vendredi 30 janvier 2015

Using Play as a Namespace in SA 3.2 causes App to Fail

Hi there,

I was working a quick example pie so I created a PlayModel project.


Created a Model, Store, and Pie View together and used namespaces.


Model name - Play.CustomerTypesModel

Store name - Play.CustomerTypesStore

Pie Class name - PlayClass.CustomerTypesPie

Panel name - Play.PieChartdisplay


Generated some data. Looked good so far and pressed F6.


The app would not run in a browser. I looked at the traffic and the app was failing on a get to the Model with a Request URL of...


localhost/sencha/app/PlayModel/app/CustomerTypesModel.js (with parameters).


Um, it should be looking in


localhost/sencha/app/PlayModel/app/Play/CustomerTypesModel.js


Messed around for about an hour or so, got a colleague to look at it. Removed namespacing for all objects and pressed F6. It ran just fine.


Decided to start adding namespace back in one at a time, first changing the model to Play.CustomerTypesModel. It failed immediately.


WOW, that's weird. Tried with


PlayModel.CustomerTypesModel - works

PLY.CustomerTypesModel - works

Fred.CustomerTypesModel - works.


Is Play a reserved word?


Thanks,


Crispin.






Using Play as a Namespace in SA 3.2 causes App to Fail

Aucun commentaire:

Enregistrer un commentaire