[英]Error with creating new route with total.js
I have the following problem with totals.js.When I try to add new route I get the following error: 我在totals.js中遇到以下问题,当我尝试添加新路由时出现以下错误:
The controller's route does not define any schema.
控制器的路由未定义任何模式。 ( http://0.0.0.0:8000/ ****/****/****/1)
( http://0.0.0.0:8000/ **** / **** / **** / 1)
I have added this method to the schema with schema.addWorkflow method but it looks like this doesn`t work. 我已经使用schema.addWorkflow方法将该方法添加到架构中,但是看起来不起作用。
You get this error when you try to use schema's methods in controller (such as $get, $query, $save, etc.) but haven't added Schema name flag to the route definition 当您尝试在控制器中使用架构的方法(例如$ get,$ query,$ save等)但未在路由定义中添加架构名称标志时,会出现此错误
F.route('/routename', handler, ['*SchemaName']);
The flag *SchemaName
tells the framework that you want to work with schema you defined using NEWSCHEMA('SchemaName')...
标志
*SchemaName
告诉框架您要使用通过NEWSCHEMA('SchemaName')...
定义的架构NEWSCHEMA('SchemaName')...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.