Short question:
How can I use createLink in a Filter?
I'm getting error:
No signature of method: MyFilters.createLink() is applicable for argument types...
My code is
createLink(controller:'home')
This code works inside a Controller, but not in a Filter.
SOLVED!
import org.codehaus.groovy.grails.plugins.web.taglib.ApplicationTagLib
...
new ApplicationTagLib().createLink([controller: 'home'])
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With