为什么在Sencha Touch cmd中没有构建视图

时间:2013-03-27 13:19:22

标签: sencha-touch-2 sencha-cmd

使用以下命令:

sencha generate view user

我收到以下错误:

[错误]生成视图是ExtJS SDK特定命令。

这有什么原因吗?

1 个答案:

答案 0 :(得分:4)

当您点按sencha generate时,您可以看到

Commands
  * app - Generates a starter application
  * controller - Generates a Controller for the current application
  * form - Generates a Form for the current application (Touch Specific)
  * model - Generates a Model for the current application
  * profile - Generates a Profile for the current application (Touch Specific)
  * theme - Generates a theme page for slice operations (ExtJS Specific)
  * view - Generates a View for the current application (ExtJS Specific
  * workspace - Initializes a multi-app workspace

因此sencha generate view ...sencha generate theme ...仅适用于ExtJS