我想做的事情非常简单:
我想在 BootStrap 类中使用“createLink”方法!我该怎么做?!有什么建议吗?
谢谢
最佳答案
尝试使用 Grails: how to use createLink in a Filter? 中的答案:
import org.codehaus.groovy.grails.plugins.web.taglib.ApplicationTagLib
...
new ApplicationTagLib().createLink([controller: 'home'])
关于grails - 在 BootStrap 中使用 createLink,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6159007/