Jump to content

How update Value in configuration table form front office


pippo67

Recommended Posts

Hello,
I created a small form front office with an input field and a button.
I'm trying to update the value my friend in the configuration table with the value entered in my input field. I tried these instructions, but the value is not updated. Where am I doing wrong?

 

This is the coide of the myfirstmodule.php file  that should update the text my friend

image.png.98cde5ee1eaba83cc70b7ce0c11829f5.png

public function changeValue( {

              $result = isset($_POST['text'])  ?  $_POST '[text']  :  ””;

              Configuration::updateValue('MYMODULE_NAME',  $result);

           }

 Thank you!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...