Re: New Komodo Macro -- CakePHP Toggle

2009-05-11 Thread AD7six



On 11 mayo, 03:29, shaggz tyler.scha...@gmail.com wrote:
 On May 10, 7:07 am, AD7six andydawso...@gmail.com wrote:

  Hi shaggz,

  Interesting stuff, why not take a look at writing a komodo wrapper for
  the cakemate plugin (http://thechaw.com/cakemate) which puts most of
  the logic in a cake shell.

  In this way your marco would only need to construct the right
  parameters for a cake-console call, and be able to parse the result.

  AD

 Thanks for the feedback, Andy.  I will take a look at the cakemate
 plugin and see what it offers.  At first glance, it does seem to be
 the 'right' way to do something like this to keep it extensible.

 One thing that is confusing at first glance is the statement that
 CakeMate 'is designed to work in conjunction with the Textmate bundle,
 and *will not* work as a standalone.'  When I looked at the textmate
 bundle sources,

I'll change it now.

That was the original project description, previously there were two
similar projects which were merged - the editor shell has no
dependencies outside of the one vendor class in the repo.


 I didn't see any cakephp files..only textmate
 snippets and code completion helpers.  I guess I don't understand the
 dependency between CakeMate and the Cake Textmate bundle if one were
 using vim (or in this case, a komodo wrapper).

Nun

 Thanks

Cheers,

AD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



New Komodo Macro -- CakePHP Toggle

2009-05-10 Thread shaggz

I just wanted to announce a new CakePHP macro I created for Komodo
Edit.  It is compatible with CakePHP 1.2+.

Please check it out if you're a Komodo user.  I've pasted the features
below:

The general purpose of the macro is to allow easy navigation between
CakePHP model/view/controller files. It should work cross-platform as
I did all directory path parsing using 'os.sep'.

It is defaulted to be activated by CTRL+SHIFT+Z

Activating the macro does the following depending on your current open
file in Komodo:

* If in a MODEL, it opens the corresponding CONTROLLER
* If in a VIEW, it opens the corresponding CONTROLLER and moves
the cursor to the function block that calls said VIEW
* If in a CONTROLLER, one of 2 actions is taken:
  o If the cursor is on a line that declares a function
associated to a view, that view will be opened. If that view does not
exist, you will be prompted to create the view file automatically.
  o If the cursor is on a line that does not declare a
function, it opens the associated MODEL


Available At:

http://community.activestate.com/forum/cakephp-toggle-eases-cakephp-navigation


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: New Komodo Macro -- CakePHP Toggle

2009-05-10 Thread AD7six



On May 9, 6:58 pm, shaggz tyler.scha...@gmail.com wrote:
 I just wanted to announce a new CakePHP macro I created for Komodo
 Edit.  It is compatible with CakePHP 1.2+.

Hi shaggz,

Interesting stuff, why not take a look at writing a komodo wrapper for
the cakemate plugin (http://thechaw.com/cakemate) which puts most of
the logic in a cake shell.

In this way your marco would only need to construct the right
parameters for a cake-console call, and be able to parse the result.

E.g, here's the vim equivalent for opening the model of whatever
you're currently editing:
http://thechaw.com/cakemate/source/vendors/vim/plugins/cakephp.vim#239

AD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: New Komodo Macro -- CakePHP Toggle

2009-05-10 Thread shaggz



On May 10, 7:07 am, AD7six andydawso...@gmail.com wrote:
 Hi shaggz,

 Interesting stuff, why not take a look at writing a komodo wrapper for
 the cakemate plugin (http://thechaw.com/cakemate) which puts most of
 the logic in a cake shell.

 In this way your marco would only need to construct the right
 parameters for a cake-console call, and be able to parse the result.

 AD

Thanks for the feedback, Andy.  I will take a look at the cakemate
plugin and see what it offers.  At first glance, it does seem to be
the 'right' way to do something like this to keep it extensible.

One thing that is confusing at first glance is the statement that
CakeMate 'is designed to work in conjunction with the Textmate bundle,
and *will not* work as a standalone.'  When I looked at the textmate
bundle sources, I didn't see any cakephp files..only textmate
snippets and code completion helpers.  I guess I don't understand the
dependency between CakeMate and the Cake Textmate bundle if one were
using vim (or in this case, a komodo wrapper).

Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---