phpstorm 에서 ci 자동완성 기능을 쓰는 방법
https://github.com/topdown/phpStorm-CC-Helpers이곳에서 zip 파일을 받아 압축 푼 후
CI_code_completion 폴더를 내 프로젝트에 넣는다
그 후
/system/core/Controller.php
/system/core/Model.php
/system/database/DB_active_rec.php
세 파일을 Mark as Plain Text 로 변경 (파일에서 우클릭) 하면 끝
내 모델 등록하는 법
CI_code_completion 폴더에 있는 my_models.php 파일을 수정
주석에 예제로 나와 있는 모델명을 내 모델에 맞게 수정하면 된다. (주석을 해둔상태로)
예)
* @property Member_model $Member_model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php die(); | |
/** | |
* Add you custom models here that you are loading in your controllers | |
* | |
* <code> | |
* $this->site_model->get_records() | |
* </code> | |
* Where site_model is the model Class | |
* | |
* ---------------------- Models to Load ---------------------- | |
* @property Member_model $Member_model | |
* @property Number_model $Number_model | |
* @property Util_model $Util_model | |
* @property Content_model $Content_model | |
* @property Comment_model $Comment_model | |
*/ | |
class my_models | |
{ | |
} | |
// End my_models.php |
댓글 없음:
댓글 쓰기