无法在HMVC中调用base_url

时间:2016-12-02 06:07:05

标签: php codeigniter

我检查了firebug,尝试访问views / index.php中的base_url时出错。如何修复错误?

应用/网站/视图/ index.php的:

<link rel="stylesheet" id="essential-grid-plugin-settings-css"  href="<?php echo base_url(); ?>assets1/css/grid-plugin-settings.css" type="text/css" media="all" />
<!--revolution slider css-->
<link rel='stylesheet' id='rs-plugin-settings-css'  href="<?php echo base_url(); ?>assets1/css/slider/settings.css" type='text/css' media='all' />
<link rel='stylesheet' id='rs-plugin-inline-css'  href='css/slider/settings-inline.css' type='text/css' media='all' />
<!--style css-->
<link rel='stylesheet' id='yith-wcwl-main-css'  href='<?php echo base_url(); ?>assets1/css/style.css' type='text/css' media='all' />
<!--bootstrap css-->
<link rel='stylesheet' id='webuild-bootstrap-css'  href='css/bootstrap.css' type='text/css' media='all' />

站点/配置/ config.php中:

$config['base_url'] = 'http://localhost/masterlinkci2/';

的index.php

$application_folder = 'application/site';

0 个答案:

没有答案