History of CreatingServices

Differences from version 4 to 7



@@ -10,19 +10,19 @@

 !!Files You Need
 Like setting up any bitweaver package, the first thing you need is a directory in you bitweaver folder which is the name of your package. The convention is to give this directory a lowercase name:
 
-{attachment id=389}
+{attachment id=393}
 
 Inside your package directory you will need a few more directories and a couple of files. The directories you will need are __admin__ and __templates__.
 
-{attachment id=390}
+{attachment id=394}
 
 In your package directory also add the file __bit_setup_inc.php__ and your package class file following this naming convention: __LibertyYourpackage.php__. All bitweaver packages use a class to register themselves with the CMS Engine, the package class file is then, obviously where this code will go. If your package is only a service the bitweaver convention is to prefix your class file will 'Liberty'; if your package is a regular package creating a new content type like wiki or aritcles, then the convention is to prefix the file with 'Bit', e.g. __BitYourpackage.php__. The Geo Package is a service only package, so it's class file name is LibertyGeo.php.
 
-{attachment id=391}
+{attachment id=395}
 
 There are a few more files to create that you will need. In admin create __schema_inc.php__. In templates you will create any templates you wish to provide as a service. Lets not create any for now. This tutorial will explain how service templates are used by Liberty a little later on, and we will create one then.
 
-{attachment id=392}
+{attachment id=396}
 
 !!Creating Your Service Database Table
 If you are creating a service, there probably will be some sort of data you want to store. Setting up your data table is the same for services as it is for packages. Since there is not that much specific about this for services, we will go over creating a data table quickly first to get it over with and then get into creating the service.
Page History
Date/CommentUserIPVersion
28 Aug 2006 (17:22 UTC)
adds image
Will68.174.111.477
Current • Source
Will68.174.111.474
View • Compare • Difference • Source
xing194.152.164.452
View • Compare • Difference • Source
xing194.152.164.451
View • Compare • Difference • Source