How to check if module controller action exits?


Have an issue here, that I can not seem to find a solution for.

I have a module with several child modules. From my main module I request all the available child modules. Next I loop through them and want to execute an action in the default controller.

However, I want to check if a specific action actually exists before I try to execute it with the runAction command.

For a while now I have been looking for a solution, but I can’t find any.

Who can tell me how I can check if an action exists within a controller before I try to execute it?

Kind regards.

[color=#1C2837][size=2]Should be easy to google for similar questions… here is the fist link that google gives for “yii check if action exists”… see if it helps you [/size][/color];)

Thanks, tried it bit did not get it to work.

Using a try & catch now.