こんにちは、CodeIgniter と PHP は初めてです。初めてセットアップしようとしていますが、次のエラーが発生します。
致命的なエラー: 未定義の関数 base_url() への呼び出し
C:\wamp\www\Test-CI\application\views\layout.php 5行目
{main}( ) IN ..\index.php:0 require_once('C:\wamp\www\Test-CI\system\core\CodeIgniter.php' ) IN ..\index.php:202
call_user_func_array () IN ..\CodeIgniter.php:359
ホーム->index( ) IN ..\CodeIgniter.php:0
CI_Loader->view( ) IN ..\home.php:17
CI_Loader->_ci_load() IN ..\Loader.php:419
include('C:\wamp\www\Test-CI\application\views\layout.php' ) IN ..\Loader.php:833
私のコード:
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Galleriffic | Custom layout with external controls</title>
<link rel="stylesheet" href="<?php base_url(); ?>/assets/css/basic.css" type="text/css" />
<link rel="stylesheet" href="<?php base_url(); ?>/assets/css/galleriffic-5.css" type="text/css" />
<!-- <link rel="stylesheet" href="<?php base_url(); ?>/assets/css/white.css" type="text/css" /> -->
<link rel="stylesheet" href="<?php base_url(); ?>/assets/css/black.css" type="text/css" />
<script type="text/javascript" src="<?php base_url(); ?>/assets/js/jquery-1.3.2.js"></script>
<script type="text/javascript" src="<?php base_url(); ?>/assets/js/jquery.history.js"></script>
<script type="text/javascript" src="<?php base_url(); ?>/assets/js/jquery.galleriffic.js"></script>
<script type="text/javascript" src="<?php base_url(); ?>/assets/js/jquery.opacityrollover.js"></script>
<!-- We only want the thunbnails to display when javascript is disabled -->
<script type="text/javascript">
document.write('<style>.noscript { display: none; }</style>');
</script>
</head>