Hello,
I wonder why I see blank screen on CI.
controllers/page.php
<?php
class Page extends CI_Controller {
public function index()
{
$this->load->view('index');
}
}
?>
views/index.php
<html>
<link href= "<?php echo base_url(); ?>assets/css/style.css" rel="stylesheet" type="text/css" media="screen">
<script src="<?php echo base_url(); ?>assets/js/jquery.min.js" type="text/javascript"></script>
<script src="<?php echo base_url(); ?>assets/js/chili-1.7.pack.js"></script>
<script src="<?php echo base_url(); ?>assets/js/jquery.cycle.all.js" type="text/javascript"></script>
<script src="<?php echo base_url(); ?>assets/js/jquery.easing.1.3.js" type="text/javascript" ></script>
<script type="text/javascript">
$('#slideshow').cycle({
fx: 'fade',
speed: 900,
timeout: 10000,
pager: '#nav',
pagerAnchorBuilder: function(idx, slide) {
// return selector string for existing anchor
return '#nav li:eq(' + idx + ') a';
}
});
</script>
<?php include('includes/navigation.php'); ?>
<body>
<div id="slidesnav"><center><img src="<?php echo base_url(); ?>assets/images/slidesnav1.jpg"><img src="<?php echo base_url(); ?>assets/images/slidesnav2.jpg"><img src="<?php echo base_url(); ?>assets/images/slidesnav1.jpg"></center></div>
<div id="demos">
<div id="slideshow" class="pics">
<script>$('body').css('background-color', 'blue');</script>
<script>$('body').css('background-color', 'red');</script>
<script>$('body').css('background-image', 'url("../images/indonusa3.jpg")');</script>
</div>
<ul id="nav">
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
</ul>
</div>
<?php /*
<img src="images/indonusa1.jpg" width="950" height="200" />
<img src="images/indonusa2.jpg" width="950" height="200" />
<img src="images/indonusa3.jpg" width="950" height="200" />
*/ ?>
<div id="products">
<a href="connection.php"><img src="<?php echo base_url(); ?>assets/images/connection.jpg"></a>
<a href="collaboration.php"><img src="<?php echo base_url(); ?>assets/images/collaboration.jpg"></a>
<a href="solution.php"><img src="<?php echo base_url(); ?>assets/images/solution.jpg"></a>
</div>
</body>
<?php include('includes/footer.php'); ?>
</html>
routes.php
$route['default_controller'] = "page";
$route['404_override'] = '';
Thanks.