Hi,
I’m having trouble adding a custom action to the Uniform plugin. I think I’m missing something basic here:
-
I created the file uniform-actions.php in site/plugins
-
The content of the file:
<?php namespace Uniform\Actions; class BlaBlaBla extends Action { public function perform() { try { var_dump($this->form->data()); } catch (\Exception $e) { $this->fail($e->getMessage()); } } }
-
Then I call the new action with
if (r::is(‘POST’)) {
$form->blaBlaBla();
However nothing happens and the new action is not found. If I use the standard DumpAction instead everything works fine. What am I missing here?
It is also not working if I place the plugin file in a /uniform-actions subdirectory.
I installed Uniform as a git submodule.
Thank you!
Georg