Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 2
    From where($this) are you calling this line of code mate? Commented Feb 10, 2014 at 4:54
  • 1
    @kaziTanvirAhsan from one of the controller's methods, I'd imagine. Commented Feb 12, 2014 at 6:47
  • Yes; I was able to do this from a controller that extends AbstractRestfulController Commented May 16, 2014 at 12:51
  • Well it's not a simple answer if we don't know what is "$this". I've tried it from a module for instance and it doesn't work. Commented May 15, 2015 at 7:50