What do I put in func.php and init.php in order to basically clone config.local.php with my own data?
What are you trying to do? Just read a file to set config info? Why not use local.conf.php?
What information do you want to override with the module?
What information do you want to override with the module?
Let's say for example I want to change the ram allocation.
Could I just re-copy over the whole file? My Addon is a simple increase in memory but I'd rather it be an addon to remove/disable easily.
This can be done in the following file:
app\addons\YOUR_ADDON\controllers\frontend\init.pre.php
This can be done in the following file:
app\addons\YOUR_ADDON\controllers\frontend\init.pre.php
So in there I could copy + paste the whole file?
But config.local.php is meant to be locally modified. That's why it's there.
Alternatively, why not just use the local.conf.php file that is included (if it exists) at the end of config.local.php. You can override whatever settings you want right there and if you have issues, you can just rename the file or comment out the contents.
You can't re-define things that are already defined. They are constants and protected.
So in there I could copy + paste the whole file?
No, use the the following code there to override memory setting:
@ini_set('memory_limit', '64M');
or this one to override other config options:
Registry::set('config.session_backend', 'redis');