[eluser]Velin[/eluser]
Hi there,
this feels like a silly question, which I have had no luck finding an answer to on Google, so forgive me if the answer is blatantly obvious.
Is there a clever/dynamic way to check if an action exists within the current controller?
I would like to ensure that users of a controller are unable to call any actions which are not defined within it.
I could use _remap or routing for this, but to the best of my knowledge, I would have to define each action in an array and match the second URI segment against it, and then redirect accordingly.
I also can't seem to get function_exists() to help me achieve this.
Any pointers would be welcome, thanks.