Skip to content

Instantly share code, notes, and snippets.

@joshuacc
Created June 21, 2012 22:54
Show Gist options
  • Save joshuacc/2969112 to your computer and use it in GitHub Desktop.
Save joshuacc/2969112 to your computer and use it in GitHub Desktop.
defaultViewFacade autocomplete snippets
<snippet>
<content><![CDATA[
\$defaultViewFacade = new Succeed_Web_DefaultView('${1:SECTION} ${2:SUBSECTION} ${3:PAGE}', '${4:TITLE}');
echo \$defaultViewFacade->render();
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>defaultv</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
\$defaultViewFacade->addAdditionalCSS("/resources/javascript/${1:CSSPATH}");
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>addcss</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
<?php echo \$defaultViewFacade->renderHeader(\$template, \$_SESSION['HS'], \$_SESSION['User']); ?>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>header</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
\$defaultViewFacade->addAdditionalJS("/resources/javascript/${1:JSPATH}");
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>addjs</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
<?php echo \$defaultViewFacade->renderLast(); ?>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>last</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment