* __Template files__ are for smarty, and they should follow convention for presentation files, such as "wiki/templates/show_page.tpl"
|
There are a few special file names that the KernelPackage will look for in each Package. Below is an example for a fictional package named "somepackage":
|
# __somepackage/bit_setup_inc.php__ is automatically parsed by the KernelPackage at setup time (technically by BitSystem::scanPackages()
|
+# __somepackage/admin/upgrades/<version>.php__ is used to set package versions and control ((Package Upgrades)). |
+# __somepackage/admin/schema_inc.php__ is used by kernel and install services to define tables for the package. |
# __somepackage/admin/admin_somepackage_inc.php__ and the corresponding __somepackage/templates/admin_somepackage.tpl__ are automatically assumed, and will be included if you link to www.yoursite.com/kernel/admin/index.php?page=somepackage
|
-# __somepackage/templates/admin_somepackage_menu.tpl__ allows specification of the package admin menu.
|
+# __somepackage/templates/menu_somepackage_admin.tpl__ allows specification of the package admin menu. |
+# __somepackage/icons/pkg_somepackage.png__ icon for the package should be 48x48 pixels. |
|
!Coding Conventions
|
* One of our most important rules in bitweaver, is to never commit code where you know it breaks something. If you __have to__ commit something you want to have tested by others, please add appropriate comments to the code such as:
|