XF 2.0 Creating ads in Setup.php

jkilbride

Member
I am using an add-on to encapsulate all my customizations and tweaks, in order to make it easier to move from development to production. I use $this->createWidget() in Setup.php, but noticed there's no corresponding method for creating ads. What's the best way to handle setting up ads when installing an add-on? Can I easily export the ad information from my dev database and import it into production? I'm trying to avoid having to redo everything once it's setup correctly in dev.

Thanks!
 
Can I just dump the xf_advertising table from my dev database and insert those records into production? Are there any other database entries I would need to copy from dev to production?
 
Top Bottom