Adding Multiple Components to an Existing Package
Summary: Describes how to install custom components onto the Tool Palette.
Each package can contain multiple components which can be installed on the "Tool Palette" in IDE. To accomplish this, simply add new components as needed without creating a new package file, then register them in the package file. To add custom components to an existing package
Uncheck "Create Package" in the dialog box since the package already exists.
- Save each new component to the same subfolder in the RadPHP rpcl folder as the package to which you want it to belong.
- Open the package file <name>
- Add a registerComponents()''''' method for each component you want to appear in the IDE on the "Tool Palette".
For example, the
//Change yourunit.inc.php to the php file which contains the component code</font> registerComponents("Samples",array("MyLabel"),"MyCustomComponents/MyLabel.inc.php"); registerComponents("Samples",array("MyButton"),"MyCustomComponents/MyButton.inc.php"); registerComponents("Samples",array("MyCheckBox"),"MyCustomComponents/MyCheckBox.inc.php");
- Install the package to the IDE.