Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.05 KB

File metadata and controls

26 lines (17 loc) · 1.05 KB

BakeYourself.vim

Please note, this is a work in progress and you should use with care

BakeYourself is a CakePHP plugin that will provide nice navigation through CakePHP projects. Currently it works under the assumption that you will open the project in vim from the root of your CakePHP project.

Variables:

g:cake_open_file_command = 'vsp'  " default. You can set this to whatever is convenient.

Functions:

CakeOpenTemplate() Call from within an action to go to the template for that action. Will create a file if one doesn't exist. Also note, that there's currently an issue with how it functions. It gets the name of the action by looking for the function you are inside of. This can cause issues if you define functions within actions.

CakeOpenController() Call from within a templatee to go to the controller for that template. Will create a file if one doesn't exist. The controller name is assumed to be the same as the folder name that the template file is within.

To Do

  1. Support Tables
  2. Support bin/bake for code generation