Programming(130)
-
CodeIgniter와의 규칙?
1. class명은 반드시 파일명과 동일해야 하며 첫글자는 대문자로 시작. 2. controller는 CI_Controller, Model은 CI_Model 을 반드시 상속받아야 함.(CodeIgniter가 제대로 작동하기 위함) 3. Model 파일은 반드시 "_model"이라고 명시를 해야 한다. ex. application/models/test.php (X) application/models/test_model.php (O) 4. 문법 $this->load->view('view_file'); => view파일 중 view_file.php를 불러옴. $this->load->database(); => DB에 연결 $this->load->model('file_model'); => model파일 중 fil..
2015.09.04 -
CodeIgniter 설치
홈페이지 및 다운로드 : http://www.codeigniter.com 파일을 다운로드 받고 DocumentRoot 경로에 압축을 풀면 끝!확인은 DocumentRoot/index.php 을 누르면 아래와 같은 문구가 출력 된다. Welcome to CodeIgniter!The page you are looking at is being generated dynamically by CodeIgniter.If you would like to edit this page you'll find it located at:application/views/welcome_message.phpThe corresponding controller for this page is found at:application/contr..
2015.09.04 -
CodeIgniter 관한 글을 작성하며..
생활코딩에서 항상 많은 도움을 받고 있는 것 같다. CodeIgniter 에 관한 내용을 작성하게 된 계기는 프레임워크에 대해서 새롭게 알게 되었으며,알게 된 이후 자주가는 opentutorials에서 동영상 강의 찾아 듣게 된 이후 부터이다. 정확하게 말하자면, model 수업을 본 이후 시점이다.볼 때는 이해가 되었으나, 돌아서면 이해가 너무 되지 않아서 잊지 않기 위해 작성을 시작했다. 지금부터 열공 !!!! CodeIgniter는 생활코딩에서 동영상 강의를 듣고 혼자만의 노트로 끄적끄적거려 볼란다.무조건 내 중심으로 글을 적을 것이다.
2015.09.04 -
엑셀 다운로드 header 방식
웹 소스 맨 상단에 추가 해줌. header("Content-Type: application/vnd.ms-excel");header("Content-Disposition: attachment; filename=test.xls");header("Content-Description:PHP4 Generated Data"); 아래와 같은 헤더도 있으나, 현재까지는 위 3개로만으로도 다운이 가능하다.header("Content-Type: application/octet-stream");header("Content-Type-Description: File Transfer");header("Expires: 0");header("Cache-Control: must-revalidate, post-check=0,pre-c..
2015.08.26