[eluser]developer10[/eluser]
Should anyone else have the same issue with "template.php does not contain valid config array" here's what I have done.
In config file /config/template.php, configuration options look like this:
Code:
$template['active_template'] = 'default';
I changed $template into $config in all of those. It was needed to alter main Template.php file as well. Now I have it working when I have config file in /application/modules/modulename/config/
Note that I have moved my Template.php library from /system/libraries to /application/libraries hoping that it would make somehow easier for me to use the path to the current module in Template.php, which would enable to use single Template.php for all of my modules.
At the moment, I'm looking for a way to have something similar in Template.php
Code:
// current code
// Load the template config file and setup our master template and regions
include(APPPATH.'modules/auth/config/template'.EXT);
// needed code
// instead of specifying module name, I need to somehow get the current module name
include(APPPATH.'modules/'.CURRMODULENAME.'/config/template'.EXT);
If this is possible somehow, let's discuss it here!
I am going now to ask @Colin Williams to take a look at this thread, as I think he might have the solution, as the author of the library.