|
楼主 |
发表于 2013-11-28 17:24:08
|
显示全部楼层
举个简单的例子:
hello.php:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Hello extends CI_Controller{
public function index(){
$this->load->view("hello.html");
}
}
hello.html:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<img src="<?php echo base_url("appplication/views/ecshop_logo.gif"); ?>" alt="">
<p>aaaaaaaaaaa</p>
</body>
</html>
访问loalhost/citest/hello/index就出来aaaaaaaa,上面那张图片出不来,我开firebug看,他说载入指定的url失败
|
|