base_url()函數(shù)在codeigniter中不起作用我正在使用codeigniter開發(fā)我們的應用程序。我試圖使用base_url()函數(shù),但它顯示空結(jié)果。我通過自動加載文件使用了autoload helper,但是它似乎也沒有用。我也定義了基本常量,但都是徒勞的。請幫忙。<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $title; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" href="<?php echo base_url();?>/css/template/default.css" type="text/css" /> <script type="text/javascript">
//<![CDATA[
base_url = '<?= base_url();?>';
//]]>
</script>
</head>
base_url()函數(shù)在codeigniter中不起作用
HUH函數(shù)
2019-09-13 11:10:02