Skip to content
Kohana 3 helper plugin for PHPStorm
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources/META-INF
src/ws/zenden/kohanastorm
.gitignore
README.md
kohanastorm.iml

README.md

kohanastorm

Kohana 3 helper plugin for PHPStorm

It provides two simple features:

  • Navigate to a template from controller (from View::factory('...') )
  • Navigate to a controller by URL

Quickly navigate to your controller's action by URL. In order to enable this feature, you need to add the following code in the end of your boostrap.php:

if ( !empty( $_GET['ks_secret_key'] ) &&  ($_SERVER['REMOTE_ADDR'] == '127.0.0.1' || $_GET['ks_secret_key'] == 'your Secret Key' ) ){
    $req = Request::factory();
    die( 'KS;1;'.$req->directory().';'.$req->controller() .';'.$req->action() );
}

For older versions (Kohana 3.0):

if ( ( !empty( $_GET['ks_enable'] ) &&   $_SERVER['REMOTE_ADDR'] == '127.0.0.1' )
    ||  !empty( $_GET['ks_secret_key']) && $_GET['ks_secret_key'] == 'your secret key' ) {
    $req = Request::instance();
    die( 'KS;1;'.$req->directory.';'.$req->controller .';'.$req->action );
}

Now you can press Ctrl+Shift+P in your project, paste URL into the text box and your controller class will be opened in code editor. Enjoy!

You can download compiled jar at releases section.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.