Hi all - I have a small website with a contact form using Uniform built in Kirby 2. I really need to keep it in Kirby v2 for now because it uses a few plugins and structures that would be a lot of time to change for now and it’s not really budgeted for within the project. I’m trying to get logging working and have used the docs to end up with the below. However I get ‘Call to undefined method UniForm::logAction()’. Does anyone know where I’ve gone wrong?
I’m using v4.2.0 which is the latest for Kirby 2.
The form function is taken from here which the github docs say to use and I’ve added the log action below.
Thanks @pedroborges - I can’t see anything on that link that I recognise as a class syntax, so might need further help pointing that out, but the controller there is a little different to what i have from their first setup example. However I can’t see in that where I would define the to and from emails?
Make sure the plugin is properly installed and loaded. If you downloaded the plugin from Github, you will need to rename the plugin folder to uniform. In Kirby 2 the folder needs to match the main PHP filename, uniform.php.