Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Normal
On further consideration, I don't feel it's worth blowing up backwards compatibility for this, not even for a major release like 2.3. Just pass null, false or an empty string if you need to force it.Worth noting too that in all cases as you should be in a Controller context already to call a controller plugin, the cleanest way to do what you want is simply to call:[CODE="php"]return $this->noPermission();[/CODE]or[CODE="php"]throw $this->exception($this->noPermission());[/CODE]This is a method on the Abstract main controller class so is available to all type-specific controllers and doesn't have a required message parameter.
On further consideration, I don't feel it's worth blowing up backwards compatibility for this, not even for a major release like 2.3. Just pass null, false or an empty string if you need to force it.
Worth noting too that in all cases as you should be in a Controller context already to call a controller plugin, the cleanest way to do what you want is simply to call:
[CODE="php"]return $this->noPermission();[/CODE]
or
[CODE="php"]throw $this->exception($this->noPermission());[/CODE]
This is a method on the Abstract main controller class so is available to all type-specific controllers and doesn't have a required message parameter.
We use essential cookies to make this site work, and optional cookies to enhance your experience.
See further information and configure your preferences