Sencha touch 如何访问Sencha Touch 2 tpl中的多对一协会

Sencha touch 如何访问Sencha Touch 2 tpl中的多对一协会,sencha-touch,sencha-touch-2,Sencha Touch,Sencha Touch 2,我有两个模型-消息和用户-每个消息有一个用户。我正在加载一个包含嵌套用户数据的json消息文件——我的模型已经定义了它们之间的关系 [{"message_id":"1","user":{"user_id":"2","name":"Bob"},"text":"This is a sample message that is here as a placeholder until we have real comments"}... 在我的模板中,我希望访问用户数据-但是{user.name}不会

我有两个模型-消息和用户-每个消息有一个用户。我正在加载一个包含嵌套用户数据的json消息文件——我的模型已经定义了它们之间的关系

[{"message_id":"1","user":{"user_id":"2","name":"Bob"},"text":"This is a sample message that is here as a placeholder until we have real comments"}...
在我的模板中,我希望访问用户数据-但是{user.name}不会产生任何结果

有人举个例子吗?似乎我必须自己解析它,但不确定从哪里开始

尝试使用
{name}
来显示嵌套数据