Saving Custom Components
From Delphi for PHP Documentation Wiki
Summary: Describes how to install custom components onto the Tool Palette.
After you have created a custom component, save the component files to the Delphi for PHP vcl folder.
| Note: |
Your custom components must be inside the Delphi for PHP vcl folder for the IDE to find them. Create a subfolder for your custom components in the vcl folder. Putting your components into subfolders enables you to build your own libraries without affecting the VCL code base and makes deployment easier. |
To save custom components
- Select the package file (<default component name>.package.php) in Delphi for PHP and choose File
Save As.
- Navigate to the <Delphi for PHP>/vcl folder in the Save As dialog box.
- Click the New Folder icon in the Save As dialog box and create a subfolder for your component inside the vcl folder (for example <Delphi for PHP>/vcl/MyCustomComponents).
- Go into the new folder and save the package file with a new name (for example, MyCustomComponents.package.php).
- Select the component file (<default component name>.inc.php) and save it to the same subfolder with a new name (for example, MyMenu.inc.php).
- Save any additional files for the component to the same library subfolder as the first component file, renaming them as you do.

