Message of the day:
Welcome. Latest release: https://www.silverstripe.org/download Community Forum: https://forum.silverstripe.org Features: https://forum.silverstripe.org/c/feature-ideas Archive: https://slackarchive.silverstripe.org
If you have any SilverStripe related questions, please supply the version of Framework you're using.
Did you flush? 🚽 =
Archive temporarily at https://archive.codingplayground.nl (redirect)
Do you have 2 files @marvin? Your Page & Controller isn't setup properly
Part 2 — the Controller…
- <?php use SilverStripe\Control\Email\Email;
- class ContactPageController extends PageController
The pieces of the puzzle. Get the Gist??
- <?php namespace App\MyProject;
- use SilverStripe\Forms\FieldList;
What @null is saying is that it does not even hit the submit function at all... i.e. does not even reach
$email = new Email()
maybe a gist of the whole PHP file in case someones spots something
public function submit($data, $form) is on ContactPageController.php. So that’s not it?
so that means your method isn't being called
Hi @null, did the test and the same thing happened…
Also make sure
public function submit($data, $form) is defined on the Controller, not the Page