Skip to content

zjr/SublimeCakePHP

 
 

Repository files navigation

SublimeCakePHP

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

Installing

With Package Manager:

Without Git: Download the latest source from http: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:https://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

License

These snippets are based on code from the CakePHP framework and is released under the MIT license.

About

Sublime Text 2 Snippets for CakePHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published