Unable to send Form to action get 404

Permalink
I've built a custom block to send an external form, following the concrete5 docs (https://documentation.concrete5.org/developers/working-with-blocks/c... )
When submitting the form i just get a 404 page.
any suggestions?

block Controller:
public function saveFormData($bID = false) {
        if ($this->bID != $bID) {
            return false;
        }
        die("Form sending would happen here");
}



block view:
<form action="<?php echo $this->action('saveFormData'); ?>">
    //****form fields*****//
</form>

 
MrKDilkington replied on at Permalink Best Answer Reply
MrKDilkington
Hi eudemonics,

In the example,the method name is prefixed with "action_":
- $view->action('form_save_vote');
- public function action_form_save_vote($bID = false)

You could try:
$this->action('action_saveFormData')
eudemonics replied on at Permalink Reply
Thank you MrKDilkington, I completely missed that somehow, got it working now.