custom controller for core block 'Form'

Permalink
Hello,

For a particular form, instance of Form block, I want to do some extra stuff after it has been submitted. This is gonna be done with overriding the original controller.php, I've done this before with other core blocks so this shouldn't be too hard.

However few minutes later I found out that application/blocks/form/controller.php doesn't get read. No matter what I put in there, it is not taking effect, even gibberish doesn't get an error thrown.

For example at one point my controller.php looked like this
<?php
namespace \Application\Block\Form;
gimmesomeerror

I'm sure the path is correct because a custom view.php in the same folder is used fine.

Is this possibly a bug or was this intended? Has everyone encountered the same problem? Or did I forget something? Any help is appreciated, thanks!

 
hawkagent replied on at Permalink Reply
Fixed! Turns out I needed to clear the cache. :)