Download this file Phpstorm-ci-ac or go to GitHub to download
Unzip the three files inside the ci root directory
And find these three files.
system\core\controller.php
system\core\model.php
system\database\db_active_rec.php
Right-click to select Make as Plain Text. :
At this point Phpstorm can already support CI code hints
Modifying the my_models.php file allows you to automate your custom class implementation
Follow these steps:
Models to load add your own class:
The format is: Description of the @property class $ class file name
Like I have a template class.
@property template class $template
Effect:
Finished
Ps:github above also have other files can make Phpstorm support OpenCart and WordPress automatic completion!
------------------------------------------------------------------------------------------------
Set Phpstorm support for CodeIgniter code autocomplete
1. Download Ci_phpstorm.rar
2, unzip the file, copy the ci_phpstorm.php to the project root path (and Index.php,system folder, application folder in the same directory)
3. Right-click the controller.php, model.php file under the System/core/folder, and select "Mark as plain text"
4, re-open the project, finished OK
Phpstorm support CodeIgniter code hints/auto-complete