CrossY Posted September 22, 2013 Share Posted September 22, 2013 (edited) Hi there, I'm currently trying to create my own module, following this: http://doc.prestashop.com/display/PS15/Creating+a+PrestaShop+module At some point it gives the following code, but I have no idea what the effect is..? Configuration::updateValue('MYMODULE_NAME', 'my friend'); Could anyone explain this one for me? Regards, Dave Edited September 22, 2013 by CrossY (see edit history) Link to comment Share on other sites More sharing options...
Phillys93 Posted September 22, 2013 Share Posted September 22, 2013 It updates an existing database variable with a new value. If the variable does not yet exist, it creates it with that value. 1 Link to comment Share on other sites More sharing options...
CrossY Posted September 22, 2013 Author Share Posted September 22, 2013 Ah, thanks! Is it nessecary though? As in, with the install/uninstall function, does it clear up the database or something? 1 Link to comment Share on other sites More sharing options...
vekia Posted September 22, 2013 Share Posted September 22, 2013 It is necessary only if you want to store some information (like settings) in database. nope, uninstall function will not remove this field, you need to remove it with own code. 2 Link to comment Share on other sites More sharing options...
CrossY Posted September 22, 2013 Author Share Posted September 22, 2013 Ah cool, thanks for the quick reply. I won't need database settings in my modules (yet). Let's start with some basic css/html Solved! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now