Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
A collection of useful recipes for the ColdBox Framework.
We have a special module just for helping you monitor and debug ColdBox applications. To install, fire up CommandBox and install it as a dependency in your application:
Remember that this module is for development so use the --saveDev
flag. This will install the ColdBox Debugger module for you, which will attach a debugger to the end of the request and give you lots of flexibility. Please read the instructions here in order to spice it up as you see fit: https://github.com/ColdBox/cbox-debugger
We have a Github organization called coldbox-templates that has a great collection of application startup templates. You can collaborate with the existing ones or send us new ones to add.
The coldbox create app
command has integration to our application templates via the skeleton
argument. This can be the name of each of the templates in our repositories or you can use the following alternatives:
Name of template in our organization: advanced,simple,super-simple,rest, rest-hmvc, vuejs, etc
A name of a ForgeBox entry: cbtemplate-advanced-script,cbtemplate-simple
A Github shortcut: github-username/repo
An HTTP/S URL to a zip file containing a template: http://myapptemplates.com/template.zip
A folder containing a template: /opt/shared/templates/my-template
A zip file containing the template: /opt/shared/templates/my-template.zip
If you use any of the view partial caching mechanisms in Coldbox either through setView()
orrenderView()
you might be asking yourself:
Is there an easy, programmatic way to remove a specific element from the view cache?
The answer is, of course! All view and event caching occurs in a cache provider called template and you can retrieve it like so from your handlers, layouts, views, plugins and interceptors:
You can also use the WireBox injection DSL
There are a few methods that will help you clear views:
clearView(viewSnippet)
- Clear views with a snippet
clearAllViews(async)
- Clear all views
clearViewMulti(viewSnippets)
- Clear multiple view snippets with a list or array of snippets
Very easy! Just send in what you need and it will be purged.