我BASE_URL是:我如何使codeigniter中的base_url成为动态的一部分?
$config['base_url'] = 'http://localhost/VI';
这是我的形象的一个环节:
<img src="<?php echo base_url('assets/images/footer.png')?>">
其做工精细。我的需要是, footer.png是我需要从数据库中获取这个图像名称的图像。
而且有可能通过这样的:
http://localhost/VI/assets/images/<?php echo $footer->image;?>
,这是对我工作的罚款。
现在我需要知道有包括<?php echo $footer->image;?>
在
<?php echo base_url('assets/images/footer.png')?>
,而不是footer.png
任何方法。
有在BASE_URL的'末尾的斜杠()'为[文档说]( https://github.com/bcit-ci/CodeIgniter/blob/develop/application/config/config.php#L10)。像'$ config ['base_url'] ='http:// localhost/VI /';' – Tpojka