Nikako ne mogu da ucitam view iz kontrolera.
Prikazuje se samo blank_page, bez gresaka.
LoginController.php:
Code:
<?php
class LoginController extends CI_Controller
{
public function __construct() {
parent::__construct();
}
function index()
{
$this->load->view('header');
}
}
?>
<?php
class LoginController extends CI_Controller
{
public function __construct() {
parent::__construct();
}
function index()
{
$this->load->view('header');
}
}
?>
header.php
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> Proba </title>
<link href=<?php echo base_url()."css/default.css"; ?> rel='stylesheet' type='text/css' />
</head>
<body>
<div id="logo" class="container">
<h1>
<span class="icon icon-lock icon-size"></span>
<a href="#">"Uloguj" <span>se</span></a>
</h1>
<p>By Admin</p>
</div>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> Proba </title>
<link href=<?php echo base_url()."css/default.css"; ?> rel='stylesheet' type='text/css' />
</head>
<body>
<div id="logo" class="container">
<h1>
<span class="icon icon-lock icon-size"></span>
<a href="#">"Uloguj" <span>se</span></a>
</h1>
<p>By Admin</p>
</div>
</body>
</html>
Ako neko zna u cemu je problem... Bio bih mu veoma zahvalan.
Hvala.