Skip to content

Instantly share code, notes, and snippets.

@Zlatov
Last active July 18, 2016 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zlatov/c013d564f13e0f305a8153ca32ec3006 to your computer and use it in GitHub Desktop.
Save Zlatov/c013d564f13e0f305a8153ca32ec3006 to your computer and use it in GitHub Desktop.
snippet-yiiinput
<snippet>
<content><![CDATA[
<input type="hidden" name="_csrf" value="<?=Yii::\$app->request->getCsrfToken()?>" />
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>yiiinput</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.html</scope> -->
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment