Sublime CakePHP is a bundle of Snippets for CakePHP. The snippets are geared towards the baked results from CakePHP 2.0.X.
####Provides the following features:
Model Specific Snippets:
* belongsTo : bt
* hasAndBelongsToMany : habtm
* hasMany : hm
* hasOne : ho
* validate : val
Helper Snippets
* $this->Html->css : css
* $this->Html->link : link
* $this->Html->script : script
* $this->Html->url : url
* $this->Time->format : timef
* $this->Time->nice : timen
Misc Snippets
* $this->data : td
* $this->request->data : trd
With Package Manager:
- Press "ctnl+shift+p"
- Enter "Package Control: Add Repository"
- Enter "https://github.com/openam/SublimeCakePHP"
- Press "ctnl+shift+p"
- Enter "Package Control: Install Package"
- Enter "SublimeCakePHP"
Without Git: Download the latest source from https://github.com/openam/SublimeCakePHP and copy the whole directory into the Packages directory.
With Git: Clone the repository in your Sublime Text 2 Packages directory, located somewhere in user's "Home" directory:
git clone git://github.com/openam/SublimeCakePHP.git
The "Packages" directory should be located at:
- Windows: %APPDATA%\Sublime Text 2\Packages
- OS X: ~/Library/Application Support/Sublime Text 2/Packages
- Linux: ~/.config/sublime_text_2/Packages
- Portable Installation: Sublime Text 2/Data/Packages
These snippets are based on code from the CakePHP framework and is released under the MIT license.