| 제목 | [예제] form헬퍼 read_file 함수 | ||
|---|---|---|---|
| 글쓴이 | ci세상 | 작성시각 | 2009/08/23 02:29:44 |
|
|
|||
|
- 메뉴얼 : http://codeigniter-kr.org/user_guide/helpers/file_helper.html - 테스트 : CI 라이센스 파일 읽어보기 컨트롤러
<?php
class Welcome extends Controller {
function Welcome()
{
parent::Controller();
$this->load->helper('file');
}
function index()
{
$data['license'] = read_file('license.txt');
$this->load->view('welcome_message',$data);
}
}
/* End of file welcome.php */
/* Location: ./system/application/controllers/welcome.php */
뷰<?php echo $license;?> 참조 : http://j2k.naver.com/j2k_frame.php/korean/tuevin.jugem.jp/?eid=114#sequel |
|||
| 다음글 | [팁] helper 혹은 config를 취할때 핵심 | ||
| 이전글 | [추천] CI 일본 개인블로그 주소들 (2) | ||
| 없음 |