| /dev/null
Blog: PHP, Python, Linux, Web services & Continuous delivery

Tag: SublimeText

sublime text 2 dev setup

On upgrade to V2.0 I had issues with some of my favorite plugins so I’m starting again and writing down what I do this time. There are a few steps involved but it is worth the effort, you may have to occasionally restart the editor after installing a plugin in order for it to become available to use.

I#ve split the plugins I use into two categories: General and PHP specific

General plugins

> Package control

Install Package Control first, after that all plugins can be installed easily via the PackageControl interface, which you can get to from the main menu > Preferences > PackageControl.

Read more

I started writing a plug-in for SublimeText 2 to speed up the development of Zend Framework 2 (ZF2) applications called ZF2Helper. So far I've implemented a couple of features and I intend to add more as and when I come across a ZF2 task that would benefit from some automation. Below is a quick example of using ZF2Helper to create new ZF2 modules and new controller actions. The full source is available on github: https://github.com/pipe-devnull/ZF2Helper and the package can be installed in Sublime Text 2 using package_control.

Creating ZF2 Modules with ZF2Helper

Create an entirely new ZF2 module with 1 click rather than copying, pasting, renaming all files individually. Much quicker :)

This option is only available in the side bar context menu.

  1. In the side bar, navigate through to the root of the ZF2 modules directory
  2. Right click on the modules folder and select "ZF2Helper > New ZF2 Module"
  3. Input the name of the new module into the prompt
  4. Add the name of the module into the main ZF2 Application configuration file (ApplicationRoot / config / application.config.php)
Read more