Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PhpStorm Code Completion to CodeIgniter

NotificationsYou must be signed in to change notification settings

yiiman-dev/codeigniter-phpstorm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Working perfectly with CodeIgniter 3.*

How to use it:

  1. Drop thephpstorm.php file into your CI project root then PhpStorm will index it.
  2. Go tosystem/core/ folder.
  3. SelectController.php andModel.php files, right click and setMark as Plain Text.

HMVC Support

If you are using the Modular HMVC, mark as Plain Text the Controller.php file in the MX folder.

You need to add the@property tag in the class doc block:

/** * Class Cart * @property Cart $cart Cart module */class Cartextends MX_Controller {/** * Add product to cart * @param int $id Product id */publicfunctionadd($id =0){// Do it...}}

To load modules in other places do like it:

/** * @var Cart $cart This will provide Code Completion in the $cart variable */$cart = Modules::load('cart');

UseCtrl + Q in$cart to load documentation or help with available functions:

$cart->add(5);

Usage in Views

If you want load CI_Controller or MX_Controller in a view, add a doc block as follow:

/** * @var CI_Controller $this */echo$this->uri->segment(1);

Preview:

Image of Code Completion

About

PhpStorm Code Completion to CodeIgniter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP100.0%

[8]ページ先頭

©2009-2025 Movatter.jp