class Welcome {
function Welcome()
{
parent::Controller();
}
function index()
{
$this->load->library('parser');
$this->parser->define('welcome', 'welcome.tpl');
$this->parser->assign(array(
'title' =>'First Template_',
'content'=>'Fill me in',
));
$this->parser->parse('welcome');
}
}
이렇게 방금 수정을 했는데요.. 이후 아래와 같은 에러가 뜹니다.
Fatal error: Cannot access parent:: when current class scope has no parent in C:\APM_Setup\htdocs\application\controllers\welcome.php on line 5
전상민님이 말씀하신데로 하니 됩니다. 휴~ 이제부터 본격적으로 코드이그나이터의 세계로 빠져들어야 겠네요.
앞으로 잘 부탁드립니다. -_-
에러메세지로 봐서는 라이브러리 로딩을 잘못하신거 같은데..