2

I have made an extension that creates an action. The action has been created and is in the database with an ID of 34. But when I go to the following URL:

http://mywebsite.com/index.php?ACT=34

I get an error page saying:

Error
The action you have requested is invalid.

The method name stored in the database is post_job and I have this method defined in my extension class. Anyone know why this is happening?

1 Answer 1

3

I have this method defined in my extension class

There it is! Action methods are only valid if they belong to a module (either mod.classname.php or mcp.classname.php). They will not work if they live in an extension or plugin.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.