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:
block view:
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>
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')