2012-09-17 2 views
0

이것은 Codeigniter 디렉토리 구조가 작동하는 것을 이해하는 방법입니다. Codeigniter 2.1.2를 사용하고 있습니다. 내가 각 디렉토리의 사용을 오해 했습니까? 내가 잊어 버린 건 없니?Codeingiter 디렉토리 구조를 올바르게 이해 했습니까?

-+ /application/ 
| 
|-+ /cache/  Used for caching pages if it is enabled 
|-+ /config/  Contains the configuration files for this project 
|-+ /controllers/ All of your controllers are saved here 
|-+ /core/   Used for modifying the core Codeigniter classes 
|-+ /errors/  Handles your errors and their output 
|-+ /helpers/  Contains your own functions 
|-+ /hooks/  Used for running code at the certain points in the routing process 
|-+ /language/  Occasionally used for translating parts of your project into different languages 
|-+ /libraries/ Contains your own classes 
|-+ /logs/   When you log any sort of notice it is saved inside a file in here 
|-+ /models/  All of your models are saved here 
|-+ /third_party/ Basically another name for plugins which go here 
|-+ /views/  Your views are saved here normally organised by controller inside a new directory 

-+ system/   Never go in here instead use the core directory inside /application/ 

-+ index.php  The front controller for your project 

고마워요!

답변

5

거의 대부분 디렉토리 구조에 대한 기본적인 이해가 정확합니다. 즉, 핵심 CodeIgniter 클래스를 수정하지 말고 필요에 따라 확장해야합니다.

도우미는 '자신의 기능이 포함되어 있지 않습니다.'가 아닙니다. 도우미는 함수이거나 내장 된 것일 수 있지만 핵심 MVC 집합 외부의 클래스/함수로 '도움'을 받아 특정 작업을 완료 할 수 있습니다. 양식 작성 또는 기타 일상적인 작업.

+0

Brilliant, thanks :) – GhostInTheSecureShell

관련 문제