Scaffold & Code Snippets
FeaturesNew Trongate ModuleA module is an essential building block of the Trongate Framework's HMVC architecture. However, creating a module from scratch is tedious and requires you to constantly concentrate on creating and naming your folders and files correctly. Then typing boilerplate code which becomes repetitive and open to errors. This is where this feature will help speed up the process with precision accuracy to create the module for you.
Add PHP and custom Trongate code snippets to speed up your development.
|
Snippet Name | Prefix |
---|---|
Trongate For Loop In View File | tg:for |
Trongate if condition in View File | tg:if |
Trongate if else in View File | tg:ifelse |
Trongate Submit Function Scaffold | tg:submit |
Create new class the extends Trongate | tgc |
Create new method with or without args | tgm , tgm1 , tgm2 , tgm3 |
Add an acnchor with url | tga |
Insert a Template | tgt |
Add [$data] = '' | tgde |
Add [$data] = $this-> | tgdl |
Quick php insert variable | tgev |
Quick php insert environment variable | tge |
NITRO
A desktop app created by David Connelly originally for Speed Coding Academy members using Sublime Text 3 only but now available to VS Code users.
New to this release:
- Click on the CSS framework name in the bottom status bar to quickly change frameworks
- The Trongate CSS has been added and is now the default framework
Features
- Insert popular frontend CSS frameworks and their elements into your view and template files
Use ctrl+win+alt+/
to bring up the dropdown selector to select your frontend framework
- Trongate > tg:t
- Bootstrap 4 > tg:b
- Defiant > tg:d
- Materialize > tg:ma
- Milligram > tg:mi
- Skeleton > tg:s
Table of Nitro inserts > Showing the Trongate CSS prefixes below:
Command | Shortcut | Prefix |
---|---|---|
Buttons | ctrl+win+alt+b |
tg:t:button |
BUttons Alternative | ctrl+win+alt+u |
tg:t:button-alt |
Contact Form | ctrl+win+alt+c |
tg:t:contact |
Download URL | ctrl+win+alt+d |
tg:t:url |
Form | ctrl+win+alt+f |
tg:t:form |
Grid | ctrl+win+alt+g |
tg:t:grid |
Info Page | ctrl+win+alt+i |
tg:t:info |
Login Form | ctrl+win+alt+l |
tg:t:login |
Modal | ctrl+win+alt+m |
tg:t:modal |
Password Form | ctrl+win+alt+p |
tg:t:password-form |
Table | ctrl+win+alt+t |
tg:t:table |
TAble Alternative | ctrl+win+alt+a |
tg:t:table-alt |
TEmplate | ctrl+win+alt+e |
tg:t:template |
PLEASE NOTE: The win
key is the same as super
in Linux and cmd
on Mac
Requirements
You will need the Trongate Framework of course! ❤️
Why you should use Trongate Framework?
- Imagine a PHP framework that allowed you to build large scale enterprise applications in minutes instead of months.
- Imagine a framework that did NOT get rewritten constantly.
- Imagine a framework that you could learn once and use for a lifetime.
- Imagine a framework that was V1 forever!
You've just imagined Trongate
Please report any issues or suggestions on our repo