codeigniter 부모 클래스 상속시키는 방법

<?php if ( ! defined(‘BASEPATH’)) exit(‘No direct script access allowed’);
require_once APPPATH . ‘controllers/welcome.php’;
class Test extends Welcome {}

<- 위와 같이 사용하면 됨

 

출처 : http://www.codeigniter-kr.org/tip/view/1006/page/1/q/

댓글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

This site uses Akismet to reduce spam. Learn how your comment data is processed.