【发布时间】:2012-01-04 08:09:41
【问题描述】:
我正在尝试在子包中使用 CRUD 模块而不是默认模块。
package controllers.admin;
import models.Branch;
import controllers.CRUD;
@CRUD.For(Branch.class)
public class Branches extends CRUD {
public static void index() {
render();
}
}
我的路线文件是:
# Import CRUD routes
* /admin module:crud
但是,当我使用默认网址时:http://localhost:9000/admin/ 我收到模板未找到错误:
Template not found
The template admin/Branches/index.html does not exist.
如何指定 CRUD 模块在子包中查找视图?
【问题讨论】:
标签: module playframework crud