Reply to thread

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.


Back
Top Bottom