2015年10月30日
摘要: 添加用户编辑区1.修改Admin.index()public static void index() { List posts = Post.find("author.email", Security.connected()).fetch(); render(posts);} 2.修改... 阅读全文
posted @ 2015-10-30 16:17 alex_cool 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 1.定制CRUD管理页面> play crud:ov --layout 替换生成文件内容app/views/CRUD/layout.html#{extends 'admin.html' /}#{set 'moreStyles'} #{/set} #{if flash.success... 阅读全文
posted @ 2015-10-30 15:27 alex_cool 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 添加权限控制1.导入Securemodule,该模块提供了一个controllers.Secure控制器。/conf/application.conf# Import the secure modulemodule.secure=${play.path}/modules/secure /conf/... 阅读全文
posted @ 2015-10-30 15:13 alex_cool 阅读(574) 评论(0) 推荐(0) 编辑
摘要: 1.定制Comment列表新增加Comment list页面,执行命令行> play crud:ov --template Comments/list 会生成/app/views/Comments/list.html生成的文件中#{crud.table /}是表格的内容,可以替换为一下内容,显示更... 阅读全文
posted @ 2015-10-30 14:06 alex_cool 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 添加增删改查操作1.开启CRUD Module在/conf/application.conf中添加# Import the crud modulemodule.crud=${play.path}/modules/crud 在/conf/routes中添加# Import CRUD routes* ... 阅读全文
posted @ 2015-10-30 13:38 alex_cool 阅读(1122) 评论(0) 推荐(0) 编辑