一、在CI框架里面的controllers

<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Welcome extends CI_Controller
{

    public function index()
    {
        //显示welcome_message.php文件
        $this->load->view('welcome_message');
    }
}

三、CI框架之一个最简单的页面

 

二、在view里面

三、CI框架之一个最简单的页面

 

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我是标题</title>
</head>
<body>
    曾经沧海难为水,除却巫山不是云。<br>
    取次花丛懒回顾,半缘修道半缘君。
</body>
</html>

 三、CI框架之一个最简单的页面

 

相关文章:

  • 2022-12-23
  • 2021-12-05
  • 2021-11-10
  • 2021-06-07
  • 2021-11-27
  • 2022-12-23
  • 2021-04-29
猜你喜欢
  • 2021-10-31
  • 2021-09-11
  • 2022-12-23
  • 2021-09-17
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案