小编use*_*058的帖子

致命错误:在第5行的C:\ wamp\www\Test-CI\application\views\layout.php中调用未定义的函数base_url()

你好我是CodeIgniter和PHP的新手,我试图在第一次设置它,但它给出了以下错误.

致命错误:调用未定义的函数base_url()

  1. 第5行的C:\ wamp\www\Test-CI\application\views\layout.php
     
  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. CodeGo.net> 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(); …
Run Code Online (Sandbox Code Playgroud)

php codeigniter

42
推荐指数
5
解决办法
18万
查看次数

标签 统计

codeigniter ×1

php ×1