0
CRUD 모듈을 기본 패키지 대신 하위 패키지로 사용하려고합니다.CRED를 하위 패키지로 설정하는 방법
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
나는 기본 URL을 사용할 때 : 내가 CRUD에 지정할 수있는 방법
Template not found
The template admin/Branches/index.html does not exist.
: http://localhost:9000/admin/ 를 내가 템플릿을 찾을 수 없습니다 오류 하위 패키지에서보기를 찾기위한 모듈?
참고 : 재생하려면 crud : 작동하도록 재정의하십시오. 관리자 폴더에보기를 배치하는 python 스크립트 crud \ commands.py를 수정해야했습니다. 'app/views/% s/% s.html'- > 'app/views/admin/% s/% s.html' – emt14