I’d like a module to install some content, for instance add some static blocks to the CMS section when the module is installed (I know how to do this).
It’d only be PHP and Magento stuff, there’s no direct need for SQL, no database table, nothing like that.
So a generic PHP script that configures Magento the right way, but only during installs or upgrades of that particular module.
I know I could use the Setup Resource mysql4-install-#.#.#.php script method for this, but that just feels plain wrong.
Any ideas?
This is an appropriate usage – you are working with the database if you are adding or updating CMS. In fact, it’s how the initial homepage fixture data is implemented.
Note that in CE >= 1.6 and EE >= 1.11 there is a complete DDL which should be used: ALTER TABLE in Magento setup script without using SQL