簡體   English   中英

致命錯誤:在第 5 行調用 C:\wamp\www\Test-CI\application\views\layout.php 中未定義的函數 base_url()

[英]Fatal error: Call to undefined function base_url() in C:\wamp\www\Test-CI\application\views\layout.php on line 5

您好,我是 CodeIgniter 和 PHP 的新手,我正在嘗試第一次設置它,但它給出了以下錯誤。

致命錯誤:調用未定義的函數 base_url()

  1. C:\wamp\www\Test-CI\application\views\layout.php 在第 5 行

  2. {main}() IN ..\index.php:0 require_once('C:\wamp\www\Test-CI\system\core\CodeIgniter.php') IN ..\index.php:202

  3. call_user_func_array () IN ..\CodeIgniter.php:359

  4. 主頁->index() IN ..\CodeIgniter.php:0

  5. CI_Loader->view() IN ..\home.php:17

  6. CI_Loader->_ci_load() IN ..\Loader.php:419

  7. 包括('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>

您好,我是 CodeIgniter 和 PHP 的新手,我正在嘗試第一次設置它,但它給出了以下錯誤。

致命錯誤:調用未定義的函數 base_url()

  1. C:\\wamp\\www\\Test-CI\\application\\views\\layout.php 第 5 行

  2. {main}( ) IN ..\\index.php:0 require_once('C:\\wamp\\www\\Test-CI\\system\\core\\CodeIgniter.php') IN ..\\index.php:202

  3. call_user_func_array ( ) IN ..\\CodeIgniter.php:359

  4. Home->index() IN ..\\CodeIgniter.php:0

  5. CI_Loader->view() IN ..\\home.php:17

  6. CI_Loader->_ci_load() IN ..\\Loader.php:419

  7. 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>

您好,我是 CodeIgniter 和 PHP 的新手,我正在嘗試第一次設置它,但它給出了以下錯誤。

致命錯誤:調用未定義的函數 base_url()

  1. C:\\wamp\\www\\Test-CI\\application\\views\\layout.php 第 5 行

  2. {main}( ) IN ..\\index.php:0 require_once('C:\\wamp\\www\\Test-CI\\system\\core\\CodeIgniter.php') IN ..\\index.php:202

  3. call_user_func_array ( ) IN ..\\CodeIgniter.php:359

  4. Home->index() IN ..\\CodeIgniter.php:0

  5. CI_Loader->view() IN ..\\home.php:17

  6. CI_Loader->_ci_load() IN ..\\Loader.php:419

  7. 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>

您好,我是 CodeIgniter 和 PHP 的新手,我正在嘗試第一次設置它,但它給出了以下錯誤。

致命錯誤:調用未定義的函數 base_url()

  1. C:\\wamp\\www\\Test-CI\\application\\views\\layout.php 第 5 行

  2. {main}( ) IN ..\\index.php:0 require_once('C:\\wamp\\www\\Test-CI\\system\\core\\CodeIgniter.php') IN ..\\index.php:202

  3. call_user_func_array ( ) IN ..\\CodeIgniter.php:359

  4. Home->index() IN ..\\CodeIgniter.php:0

  5. CI_Loader->view() IN ..\\home.php:17

  6. CI_Loader->_ci_load() IN ..\\Loader.php:419

  7. 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>

您好,我是 CodeIgniter 和 PHP 的新手,我正在嘗試第一次設置它,但它給出了以下錯誤。

致命錯誤:調用未定義的函數 base_url()

  1. C:\\wamp\\www\\Test-CI\\application\\views\\layout.php 第 5 行

  2. {main}( ) IN ..\\index.php:0 require_once('C:\\wamp\\www\\Test-CI\\system\\core\\CodeIgniter.php') IN ..\\index.php:202

  3. call_user_func_array ( ) IN ..\\CodeIgniter.php:359

  4. Home->index() IN ..\\CodeIgniter.php:0

  5. CI_Loader->view() IN ..\\home.php:17

  6. CI_Loader->_ci_load() IN ..\\Loader.php:419

  7. 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>

您好,我是 CodeIgniter 和 PHP 的新手,我正在嘗試第一次設置它,但它給出了以下錯誤。

致命錯誤:調用未定義的函數 base_url()

  1. C:\\wamp\\www\\Test-CI\\application\\views\\layout.php 第 5 行

  2. {main}( ) IN ..\\index.php:0 require_once('C:\\wamp\\www\\Test-CI\\system\\core\\CodeIgniter.php') IN ..\\index.php:202

  3. call_user_func_array ( ) IN ..\\CodeIgniter.php:359

  4. Home->index() IN ..\\CodeIgniter.php:0

  5. CI_Loader->view() IN ..\\home.php:17

  6. CI_Loader->_ci_load() IN ..\\Loader.php:419

  7. 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>

您好,我是 CodeIgniter 和 PHP 的新手,我正在嘗試第一次設置它,但它給出了以下錯誤。

致命錯誤:調用未定義的函數 base_url()

  1. C:\\wamp\\www\\Test-CI\\application\\views\\layout.php 第 5 行

  2. {main}( ) IN ..\\index.php:0 require_once('C:\\wamp\\www\\Test-CI\\system\\core\\CodeIgniter.php') IN ..\\index.php:202

  3. call_user_func_array ( ) IN ..\\CodeIgniter.php:359

  4. Home->index() IN ..\\CodeIgniter.php:0

  5. CI_Loader->view() IN ..\\home.php:17

  6. CI_Loader->_ci_load() IN ..\\Loader.php:419

  7. 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>

您好,我是 CodeIgniter 和 PHP 的新手,我正在嘗試第一次設置它,但它給出了以下錯誤。

致命錯誤:調用未定義的函數 base_url()

  1. C:\\wamp\\www\\Test-CI\\application\\views\\layout.php 第 5 行

  2. {main}( ) IN ..\\index.php:0 require_once('C:\\wamp\\www\\Test-CI\\system\\core\\CodeIgniter.php') IN ..\\index.php:202

  3. call_user_func_array ( ) IN ..\\CodeIgniter.php:359

  4. Home->index() IN ..\\CodeIgniter.php:0

  5. CI_Loader->view() IN ..\\home.php:17

  6. CI_Loader->_ci_load() IN ..\\Loader.php:419

  7. 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>

您好,我是 CodeIgniter 和 PHP 的新手,我正在嘗試第一次設置它,但它給出了以下錯誤。

致命錯誤:調用未定義的函數 base_url()

  1. C:\\wamp\\www\\Test-CI\\application\\views\\layout.php 第 5 行

  2. {main}( ) IN ..\\index.php:0 require_once('C:\\wamp\\www\\Test-CI\\system\\core\\CodeIgniter.php') IN ..\\index.php:202

  3. call_user_func_array ( ) IN ..\\CodeIgniter.php:359

  4. Home->index() IN ..\\CodeIgniter.php:0

  5. CI_Loader->view() IN ..\\home.php:17

  6. CI_Loader->_ci_load() IN ..\\Loader.php:419

  7. 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>

您好,我是 CodeIgniter 和 PHP 的新手,我正在嘗試第一次設置它,但它給出了以下錯誤。

致命錯誤:調用未定義的函數 base_url()

  1. C:\\wamp\\www\\Test-CI\\application\\views\\layout.php 第 5 行

  2. {main}( ) IN ..\\index.php:0 require_once('C:\\wamp\\www\\Test-CI\\system\\core\\CodeIgniter.php') IN ..\\index.php:202

  3. call_user_func_array ( ) IN ..\\CodeIgniter.php:359

  4. Home->index() IN ..\\CodeIgniter.php:0

  5. CI_Loader->view() IN ..\\home.php:17

  6. CI_Loader->_ci_load() IN ..\\Loader.php:419

  7. 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>

您好,我是 CodeIgniter 和 PHP 的新手,我正在嘗試第一次設置它,但它給出了以下錯誤。

致命錯誤:調用未定義的函數 base_url()

  1. C:\\wamp\\www\\Test-CI\\application\\views\\layout.php 第 5 行

  2. {main}( ) IN ..\\index.php:0 require_once('C:\\wamp\\www\\Test-CI\\system\\core\\CodeIgniter.php') IN ..\\index.php:202

  3. call_user_func_array ( ) IN ..\\CodeIgniter.php:359

  4. Home->index() IN ..\\CodeIgniter.php:0

  5. CI_Loader->view() IN ..\\home.php:17

  6. CI_Loader->_ci_load() IN ..\\Loader.php:419

  7. 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>

您好,我是 CodeIgniter 和 PHP 的新手,我正在嘗試第一次設置它,但它給出了以下錯誤。

致命錯誤:調用未定義的函數 base_url()

  1. C:\\wamp\\www\\Test-CI\\application\\views\\layout.php 第 5 行

  2. {main}( ) IN ..\\index.php:0 require_once('C:\\wamp\\www\\Test-CI\\system\\core\\CodeIgniter.php') IN ..\\index.php:202

  3. call_user_func_array ( ) IN ..\\CodeIgniter.php:359

  4. Home->index() IN ..\\CodeIgniter.php:0

  5. CI_Loader->view() IN ..\\home.php:17

  6. CI_Loader->_ci_load() IN ..\\Loader.php:419

  7. 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>

您好,我是 CodeIgniter 和 PHP 的新手,我正在嘗試第一次設置它,但它給出了以下錯誤。

致命錯誤:調用未定義的函數 base_url()

  1. C:\\wamp\\www\\Test-CI\\application\\views\\layout.php 第 5 行

  2. {main}( ) IN ..\\index.php:0 require_once('C:\\wamp\\www\\Test-CI\\system\\core\\CodeIgniter.php') IN ..\\index.php:202

  3. call_user_func_array ( ) IN ..\\CodeIgniter.php:359

  4. Home->index() IN ..\\CodeIgniter.php:0

  5. CI_Loader->view() IN ..\\home.php:17

  6. CI_Loader->_ci_load() IN ..\\Loader.php:419

  7. 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>

..

這里我設置href的值是文件的路徑你通過以下步驟得到這個路徑

在瀏覽器上搜索本地主機,然后進入保存文件的目錄,然后復制 url

注意* **如果您有任何 index.php 或 index.html 或其他索引命名的文件,請在撤消文件名后臨時更改名稱以獲取 url **

使用這個不需要使用功能


<link href="http://localhost/CodeIgniter-2.2.6/css/sm_reg.css" rel="stylesheet">

這里我設置href的值是文件的路徑你通過以下步驟得到這個路徑

在瀏覽器上搜索本地主機,然后進入保存文件的目錄,然后復制 url

注意* **如果您有任何 index.php 或 index.html 或其他索引命名的文件,請在撤消文件名后臨時更改名稱以獲取 url **

使用這個不需要使用功能

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM