기본 콘텐츠로 건너뛰기

웹프레임워크 | CodeIgniter - 폴더와 파일

웹프레임워크 | CodeIgniter - 폴더와 파일

- 루트폴더

- 루트폴더

- 시스템폴더

- 시스템폴더

- define('SELF', pathinfo(the ))

- define('SELF', pathinfo(the ))

❛ index.php : 주요 경로 상수를 결정함

❛ index.php : 주요 경로 상수를 결정함

루트 폴더

최상위 폴더 (

최상위 폴더 (

최상위 폴더 ( 루트 폴더 )

application 폴더 : 사용자가 작성하는 소스와 여러가지 환경 설정 파일들이 저장되는 최상위 디렉토리

❛ cache : 캐쉬파일

❛ config : 환경설정 파일 - autoload.php : CI에서 사용되는 패키지, 라이브러리, 설정 파일등을 자동을 로드 - database.php : 데이터베이스 연결 정보 - routes.php : 컨트롤러의 기본설정과 URI라우팅설정을 추가할 수 있다

❛ controllers : MVC중 컨트롤러 파일 하위폴더는 하나까지

❛ core : core기능들을 사용자가 확장할 때 쓰는 파일 Codeigniter.php

❛ errors : errors 정의 페이지

❛ helpers : helper파일

❛ hooks : hooks파일

❛ language : 다국어를 사용할 때 사용하는 언어파일

❛ libraries : 사용자 정의 라이브러리 파일

❛ logs : log파일이 적재됨

❛ models : MVC 중 모델 파일

❛ third_party : 서드파티 라이브러리 파일

from http://sanctacrux.tistory.com/554 by ccl(A) rewrite - 2020-03-06 15:20:52

댓글

이 블로그의 인기 게시물

[PHP] 코드이그니터 - 파일업로드 구현

[PHP] 코드이그니터 - 파일업로드 구현 파일 업로드 이번에 PHP 프레임워크인 코드 이그니터(Codeigniter)를 사용하여 홈페이지를 만드는데 사용한 이미지 업로드용 코드 입니다. upload 라이브러리를 사용하고 app~ 와 같은 위치에 upload 폴더를 만드고 다음 코드를 사용한다음 ajax 로 호출하여 파일을 업로드 합니다. function index() { // Upload 설정 $config['upload_path'] = './upload/'; $config[\'allowed_types\'] = 'gif|jpg|png'; $config['max_size'] = 100; // 100k $config['max_width'] = 1024; $config['max_height'] = 768; $this->load->library('upload', $config); $data = array(); if (! $this->upload->do_upload("service_image")) { $error = array('error' => $this->upload->display_errors()); } else { //$data = array('upload_data' => $this->upload->data()); $this->output->set_output("./upload/".$this->upload->data('file_name')); } } jquery 를 이용한 파일 업로드 호출 코드 function upload() { var datas, xhr; datas = new FormData(); datas.append( 'service_image', $( ...

2017년 1월 스타트업에서 구인할때 주로 원하는 개발 기술

2017년 1월 스타트업에서 구인할때 주로 원하는 개발 기술 php mysql linux android git kotlin gcm/fcm python mssql mongodb amazon aws ios objective-c swift github python c++ django python postgresql amazon aws html5/css3/javascript android java mysql python c++ c# java aws cloud-server dbms node.js postgresql redis nginx react.js hapi.js amazon aws restful-api angularJS jQuery html5/css3/javascript android firebase custom ui component restful-api asp.net c# html css javascript bootstrap angularjs node.js php mongodb redis 프론트엔드 주요 기술 javascript jquery ajax angularjs wbesocket html5/css3/javascript android ios java xcode node.js coffeescript mysql amazon ec2 amazon es3 android ios node.js php python java ios php mysql apache python android redis node.js jquery msa node.js java restful-api linux nosql golang redis nginx ...

[CodeIgniter] _rmap을 이용한 화면 상단, 하단 레이어 고정

[CodeIgniter] _rmap을 이용한 화면 상단, 하단 레이어 고정 class Welcome extends CI_Controller { /** * @brief 기본 Wellcome to CodeIgniter! 페이지 지정 */ public function index() { $this->load->view("welcome_message"); } /** * @brief 사이트 헤더, 푸터가 자동으로 추가 */ public function _remap($method) { // brief 헤더 load $this->load->view("layer/headder_view"); if(method_exists($this, $method)) { $this->{"{$method}"}(); } // @brief 푸터 load $this->load->view("layer/footer_view"); } } from http://magic.wickedmiso.com/219 by ccl(A) rewrite - 2020-03-11 02:20:33