저는 codeignitor를 처음 사용하여 컨트롤러와 뷰를 만들려고합니다. 컨트롤러가 성공적으로 만들어져 뷰를 호출하고 있습니다. 뷰가 성공적으로 호출되었지만 이미지가 표시되지 않습니다. 사진을 같은 폴더에 다른 폴더에 넣으려고했으나 아무 것도 작동하지 않았습니다.사진이 codeignitor에로드되지 않습니다.
보기
<!doctype html>
<html>
<head>
<!-- Latest compiled and minified CSS -->
<meta charset="utf-8">
<title>Untitled Document</title>
<!--<link href="/assists/css/font-awsome.css" rel="stylesheet" type="text/css">-->
<!--<link type="text/css" rel="stylesheet" href="/assists/css/stylecinemax.css">-->
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="style2.css">
<!-- Start CSS Slideshow HEAD section -->
<link rel="stylesheet" type="text/css" href="engine1/style.css" />
<script type="text/javascript" src="engine1/jquery.js"></script>
<!-- End CSS Slider HEAD section -->
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="header">
<a class="cinestar" href="#"></a>
<a id="membersarealink" style="margin-left: 5%" href="#" class="toplink">Home</a>
<a id="corporatelink" href="#" class="toplink">Corporate</a>
<div class="imaxbox">
<div class="sponsor"><img src="pics/sponsorlogo.png" height="32"></div>
</div>
<a id="gallerycinestar" href="#" class="toplink">Gallery</a>
<a id="aboutus" href="#" class="toplink">About</a>
<a id="contactuscinestar" href="#" class="toplink">Contact</a>
<div class="contactinfo">
<h1>(042) 111 cinema</h1>
<a href="#" class="socialicon"><img src="googleplus-header.png" width="24"></a>
<a href="#" class="socialicon" target="_blank"><img src="../pics/2.png" width="24"></a>
<a href="#" class="socialicon" target="_blank"><img src="../pics/imax-logo.png" width="24"></a>
</div>
<div class="topticker" style="background-color:gainsboro">
<span>
<a class="online-booking-dialogue" href="login.php">Login</a>
<a class="members-area-dialogue" href="registration.php" target="_blank">MEMBER REGISTRATION</a>
</span>
<p style="padding-left: 2%">
To get SMS Alerts of our daily schedule and promotions, please dial 111 CINEMA from your cellphone
</p>
</div> <!--toptickter-->
</div> <!--header-->
</body>
</html>
컨트롤러
<?php
class front_page extends CI_Controller{
public function one()
{
$this->load->view('header');
}
}
이 출력입니다 :
당신이 필요 config.php를에 기본 URL을 설정했습니다. – user4419336