An Error Was Encountered
Non-existent class: Template_.class
Non-existent class: Template_.class
클래스 지정과 파일명이 일치해야 하는것은 맞는것 같구요~ 파일명에 쩜이 들어가면 인식못하는것 같습니다.대소문자는 메뉴얼에도 잘 나와있듯이 첫번째가 대문자로 시작하는것은 맞습니다.^^
<?
class Header extends Controller {
function Header()
{
parent::Controller();
}
function index()
{
$this->load->view("header");
}
}
/* End of file foo.php */
/* Location: ./system/application/controllers/foo.php */
?>
이렇게 만들었는데
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Templateclass { function some_function() { } } ?> $this->load->library('templateclass');2. application/libraries/Templatecompiler.php<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Templatecompiler { function some_function() { } } ?> $this->load->library('templatecompiler');