alexAlToader
New member
Hi,
I have problems understanding how to create 2 actions in the same controller.
I need to save 2 routes in Admin for the 2 actions - right?
For the first route I dont have anything specified and it resolves at actionPost.
However, when I try to add another route in the same controller, I cant figure out what I need to change to have a route Action named "randomActionName"
I tried adding randomActionName as a Sub-name or as an Action prefix - still not working.
I also tried to add "action" in front of "randomActionName" or "Post" after "randomActionName" - still not working.
Please help!
I have problems understanding how to create 2 actions in the same controller.
I need to save 2 routes in Admin for the 2 actions - right?
For the first route I dont have anything specified and it resolves at actionPost.
However, when I try to add another route in the same controller, I cant figure out what I need to change to have a route Action named "randomActionName"
I tried adding randomActionName as a Sub-name or as an Action prefix - still not working.
I also tried to add "action" in front of "randomActionName" or "Post" after "randomActionName" - still not working.
Please help!