The lines below are causing an error and i don;'t know why. I get " only variables should be assigned by reference" on line 300 of common.php. I have modified config.php by using
$config['TYPO'] = 'PHARMA';
Do I need to modify the $config using item to create TYPO in the config class first, before I can use that index?
I see $this->config->set_item('item_name', 'item_value'); in the docs, but i also see $config['base_url'] = used in config.php. Should I be using set_item() and if so, where should I put this?
<?php
if ($this->config->item('TYPO')=='SOFTWARE'){
echo '<script type="text/JavaScript"><img src="<?php echo base_url(); ?>assets/themes/default/images/new_blue_logo_sub240x240.png" style="float:left;margin-top:5px;z-index:5" alt="logo"/>
</script>';
}
if ($this->config->item('TYPO')=='PHARMA'){
echo '<script type="text/JavaScript"><img src="<?php echo base_url(); ?>assets/themes/default/images/output-onlinepngtools (8).png" style="float:left;margin-top:5px;z-index:5" alt="logo"/>
</script>';
}
?>
proof that an old dog can learn new tricks