/trongate-snippets-sublime

Snippets for the Trongate framework

MIT LicenseMIT

Smitty's Snippets for the Trongate framework

Read Me

All developers

These snippets are to make life easier and faster then before using the Trongate framework. For sure, this will create a better experience and workflow.

The Trongate website is at Trongate website The Trongate framework can be downloaded on Github at Trongate framework

Speed Coding Academy

As a founding member at Speed Coding Academy, with Trongate, companion tools, and these snippets, there is no doubt you can create anything at lightning fast feeds!

Of course, recommendations are always appreciated inside the forum, if you would like some improvements. Guys and gals at the academy, these are your passports to having lighning speed in the sky.

When you use these snippets with Sublime Text within HTML Files, or HTML within PHP, simply use the less than sign(<). As soon you start typing, it will display all the snippets. If it is directly within PHP itself, it should automatically show all of the Trongate Snippets as soon as you type. VSCode snippets will be added after I finish these snippets and will create a "school of Trongate Snippets". Be sure to download the latest snippets!

Other news

All developers

Once the time is ripe, there are upcoming lessons, so stay tuned for that!

And for a more comprehensive view of the HTML snippets and ones I'm transferring to this Github account:

Smitty's Trongate Snippets in HTML https://www.stevenmilley.com/sca/tg-snippets/readme.html

Table of Trongate snippets:

Snippet Name Shortcut Code Characters saved
Trongate Add Floating Cents Function (Two Variables Passed) tgafc + <Tab> + your amount in dollars $number_format($your_amount, 2); 15
Trongate Anchor Function tga + + your link anchor('your_link'); 7
Trongate Class tgc + + Enter Your Classname + + Enter your Class statements `class MyClass extends Trongate {
Your code goes here.
}Inline Code Snippet` 25
Trongate Config Array Assignment tgcaa + + your first variable name + + your second variable name config[$your_variable1] = $your_variable2; 8
Trongate Data Array Assignment tgda + + your array name + + your function name $your_arrayName = 'your_function_name'; 2
Trongate Echo Current Url Function tgecu + Press to move the cursor after the semicolon echo current_url(your url); 14
Trongate Echo Form Input Function tgefi + + form name + <Ctrl + Enter> echo form_input('$form_name'); 15
Trongate Echo Form Label Function tgefl + + your label + <Ctrl + Enter> echo form_input('form_label'); 14
Trongate Echo Form Submit Function tgefs + + <Ctrl + Enter> echo form_submit('submit', 'Submit'); 31
Trongate Form Textarea Function tgeft + + your text echo form_textarea('your_text'); 17