Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updating eclipse template files.

  • Loading branch information...
commit e6d8f5023a9e0614833e581d212cf7f9bedabc44 1 parent e7079b1
@markstory authored
Showing with 40 additions and 18 deletions.
  1. +20 −9 eclipse/html-templates.xml
  2. +20 −9 eclipse/php-templates.xml
View
29 eclipse/html-templates.xml
@@ -1,12 +1,23 @@
-<?xml version="1.0" encoding="UTF-8"?><templates><template autoinsert="true" context="html_all" deleted="false" description="PHP echo block" enabled="true" name="echo">&lt;?php echo ${cursor}; ?&gt;</template><template autoinsert="true" context="html_all" deleted="false" description="PHP - foreach block" enabled="true" name="fore">&lt;?php foreach(${variable} as ${element}): ?&gt;&#13;
+<?xml version="1.0" encoding="UTF-8"?>
+<templates>
+ <template autoinsert="true" context="html_all" deleted="false" description="PHP echo block" enabled="true" name="echo">&lt;?php echo ${cursor}; ?&gt;</template>
+ <template autoinsert="true" context="html_all" deleted="false" description="PHP - foreach block" enabled="true" name="fore">&lt;?php foreach(${variable} as ${element}): ?&gt;&#13;
${cursor}&#13;
-&lt;?php endforeach; ?&gt;</template><template autoinsert="true" context="html_all" deleted="false" description="CakePHP - $form-&gt;create()" enabled="true" name="formc">&lt;?php echo $$form-&gt;create(${Model}); ?&gt;&#13;
-${cursor}</template><template autoinsert="true" context="html_all" deleted="false" description="CakePHP - form-&gt;end()" enabled="true" name="forme">&lt;?php echo $$form-&gt;end('${Save}'); ?&gt;&#13;
-${cursor}</template><template autoinsert="true" context="html_all" deleted="false" description="CakePHP - form-&gt;input()" enabled="true" name="formi">&lt;?php echo $$form-&gt;input(${fieldname}); ?&gt;&#13;
+&lt;?php endforeach; ?&gt;</template>
+ <template autoinsert="true" context="html_all" deleted="false" description="CakePHP - $form-&gt;create()" enabled="true" name="formc">&lt;?php echo $$form-&gt;create(${Model}); ?&gt;&#13;
+${cursor}</template>
+ <template autoinsert="true" context="html_all" deleted="false" description="CakePHP - form-&gt;end()" enabled="true" name="forme">&lt;?php echo $$form-&gt;end('${Save}'); ?&gt;&#13;
+${cursor}</template>
+ <template autoinsert="true" context="html_all" deleted="false" description="CakePHP - form-&gt;input()" enabled="true" name="formi">&lt;?php echo $$form-&gt;input(${fieldname}); ?&gt;&#13;
${cursor}&#13;
-</template><template autoinsert="true" context="html_all" deleted="false" description="PHP if block" enabled="true" name="if">&lt;?php if(${condition}): ?&gt;&#13;
+</template>
+ <template autoinsert="true" context="html_all" deleted="false" description="PHP if block" enabled="true" name="if">&lt;?php if(${condition}): ?&gt;&#13;
${cursor}&#13;
-&lt;?php endif; ?&gt;</template><template autoinsert="true" context="html_tag" deleted="false" description="CakePHP $html-&gt;image()" enabled="true" id="org.eclipse.wst.html.ui.templates.imgmap" name="img">&lt;?php echo $$html-&gt;image(${imagename}); ?&gt;&#13;
-${cursor}</template><template autoinsert="true" context="html_all" deleted="false" description="CakePHP - $html-&gt;link()" enabled="true" name="linka">&lt;?php echo $$html-&gt;link('${title}', array('action' =&gt; '${action}')); ?&gt;&#13;
-${cursor}</template><template autoinsert="true" context="html_all" deleted="false" description="CakePHP - $html-&gt;link()" enabled="true" name="linkca">&lt;?php echo $$html-&gt;link(${title}, array('controller' =&gt; '${controller}', 'action' =&gt; '${action}')); ?&gt;&#13;
-${cursor}</template></templates>
+&lt;?php endif; ?&gt;</template>
+ <template autoinsert="true" context="html_tag" deleted="false" description="CakePHP $html-&gt;image()" enabled="true" id="org.eclipse.wst.html.ui.templates.imgmap" name="img">&lt;?php echo $$html-&gt;image(${imagename}); ?&gt;&#13;
+${cursor}</template>
+ <template autoinsert="true" context="html_all" deleted="false" description="CakePHP - $html-&gt;link()" enabled="true" name="linka">&lt;?php echo $$html-&gt;link('${title}', array('action' =&gt; '${action}')); ?&gt;&#13;
+${cursor}</template>
+ <template autoinsert="true" context="html_all" deleted="false" description="CakePHP - $html-&gt;link()" enabled="true" name="linkca">&lt;?php echo $$html-&gt;link(${title}, array('controller' =&gt; '${controller}', 'action' =&gt; '${action}')); ?&gt;&#13;
+${cursor}</template>
+</templates>
View
29 eclipse/php-templates.xml
@@ -1,9 +1,20 @@
-<?xml version="1.0" encoding="UTF-8"?><templates><template autoinsert="true" context="php" deleted="false" description="CakePHP - Auth-&gt;user()" enabled="true" name="authu">$$this-&gt;Auth-&gt;user(${key});&#13;
-${cursor}</template><template autoinsert="true" context="php" deleted="false" description="CakePHP - debug() " enabled="true" name="dbg">debug(${cursor});</template><template autoinsert="true" context="php" deleted="false" description="CakePHP - Controller-&gt;redirect()" enabled="true" name="redir">$$this-&gt;redirect(${location});&#13;
-${cursor}</template><template autoinsert="true" context="php" deleted="false" description="CakePHP - Controller-&gt;referer()" enabled="true" name="refer">$$this-&gt;referer(${fallback});&#13;
-${cursor}</template><template autoinsert="true" context="php" deleted="false" description="CakePHP - Session-&gt;delete()" enabled="true" name="sesd">$$this-&gt;Session-&gt;delete(${key});&#13;
-${cursor}</template><template autoinsert="true" context="php" deleted="false" description="CakePHP - Session-&gt;read()" enabled="true" name="sesr">$$this-&gt;Session-&gt;read(${key});&#13;
-${cursor}</template><template autoinsert="true" context="php" deleted="false" description="CakePHP - Session-&gt;write()" enabled="true" name="sesw">$$this-&gt;Session-&gt;write(${key}, ${value});&#13;
-${cursor}</template><template autoinsert="true" context="php" deleted="false" description="CakePHP - Session-&gt;setFlash()" enabled="true" name="ssf">$$this-&gt;Session-&gt;setFlash(${output});&#13;
-${cursor}</template><template autoinsert="true" context="php" deleted="false" description="CakePHP - Session setFlash() with error key" enabled="true" name="ssfe">$$this-&gt;Session-&gt;setFlash(${message}, 'default', array(), 'error');&#13;
-${cursor}</template></templates>
+<?xml version="1.0" encoding="UTF-8"?>
+<templates>
+ <template autoinsert="true" context="php" deleted="false" description="CakePHP - Auth-&gt;user()" enabled="true" name="authu">$$this-&gt;Auth-&gt;user(${key});&#13;
+${cursor}</template>
+ <template autoinsert="true" context="php" deleted="false" description="CakePHP - debug() " enabled="true" name="dbg">debug(${cursor});</template>
+ <template autoinsert="true" context="php" deleted="false" description="CakePHP - Controller-&gt;redirect()" enabled="true" name="redir">$$this-&gt;redirect(${location});&#13;
+${cursor}</template>
+ <template autoinsert="true" context="php" deleted="false" description="CakePHP - Controller-&gt;referer()" enabled="true" name="refer">$$this-&gt;referer(${fallback});&#13;
+${cursor}</template>
+ <template autoinsert="true" context="php" deleted="false" description="CakePHP - Session-&gt;delete()" enabled="true" name="sesd">$$this-&gt;Session-&gt;delete(${key});&#13;
+${cursor}</template>
+ <template autoinsert="true" context="php" deleted="false" description="CakePHP - Session-&gt;read()" enabled="true" name="sesr">$$this-&gt;Session-&gt;read(${key});&#13;
+${cursor}</template>
+ <template autoinsert="true" context="php" deleted="false" description="CakePHP - Session-&gt;write()" enabled="true" name="sesw">$$this-&gt;Session-&gt;write(${key}, ${value});&#13;
+${cursor}</template>
+ <template autoinsert="true" context="php" deleted="false" description="CakePHP - Session-&gt;setFlash()" enabled="true" name="ssf">$$this-&gt;Session-&gt;setFlash(${output});&#13;
+${cursor}</template>
+ <template autoinsert="true" context="php" deleted="false" description="CakePHP - Session setFlash() with error key" enabled="true" name="ssfe">$$this-&gt;Session-&gt;setFlash(${message}, 'default', array(), 'error');&#13;
+${cursor}</template>
+</templates>
Please sign in to comment.
Something went wrong with that request. Please try again.