This is probably only a naming problem:

write 'action myAction()' - with the brackets
instead of
action myAction - without brackets