Hello all,

Decided to make a small contribution here for all cakephp linux users:
snippets for quick development. As seen in Textmate for Mac or Intype
for Windows. Snippets will allow you to simply write a quick trigger
tag and the editor will replace it with code.


I.E. type htmlimagelink press tab and you will get

echo $html->link($html->image("image",array()),"/location",null, null,
false);

upon pressing tab again you will be able to edit the image, location
and false vars. (just as an example).


Screenshot:  http://aluna.homelinux.net/img/snippets.jpg
Download: http://aluna.homelinux.net/img/cakephp_snippet.tar.gz

Instructions are simple

1. Simply install the snippet plugin for gedit (I would recomend
insalling all gedit plugins, ubuntu users can do a: sudo apt-get
install gedit-plugins from a console).

2. Untar cakephp_snippet.tar.gz and copy the file php.xml to ~/.gnome2/
gedit/snippets

Done! Restart gedit, enable snippets in the preferences->plugin window
and start using.

After this you can find a list of available snippets by clicking Tools
-> Manage Snippets then selecting PHP.

Initially the cakephp snippet list is small, the idea is to make it a
group effort and everyone contribute to it.


Hope anyone finds this useful, I sure did!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to