Knickers: Change your underwear!

Creating Frills

To see a list of available Frills, go here.
For infomation about installing Frills, go here.

Frills are either located in [your project]/frills/ or [KNICKERS_FRILLS_ROOT]/frills/, depending on if they are a "application-level frill" or a "knickers-level frill". You use knickers-level frills when you have multiple knickers applications on your system and want to share frills between them.

Within the appropriate base path descripbed above, there is a directory for your frill that contains everything related to your frill. This includes the classes, templates, css and javascript for your frill, any dictionary files, any testcases, and the frill definition file.

Frills names must be all lower-case, and can contain only the characters [a-z0-9-+].

The frill definition file must be called frill.xml, and the DTD for this file is located in [KNICKERS_ROOT]/cfg/frill.DTD.

As frills only make sense in the context of an application, you will need to tell your application about it before you can test it; this is called "activating" a frill, and is slightly different than "installing" a frill because you already have the code locally -- you just need to tell the application where to find it. For example, if you have created frill called "myfrill" with a file [your project]/frills/myfrill/cls/Controller/Panel_MyPanel.class.php, your Panel will only be visible once you do:

cd [your project]
[KNICKERS_ROOT]/scripts/frills.php activate myfrill
Anytime you add a new class to your frill, you will need to do this.

Publishing

Once you have completed your frill and you want to make it available to others to use on their own applications, you can do:

cd [your project]
[KNICKERS_ROOT]/scripts/frills.php create myfrill
This will generate a tgz file that you can distribute to others.