Admin Settings Page

Once you have defined all necessary configuration variables for a package, you can run the opus admin-settings CLI command to automatically generate the necessary view within the administration panel to manage all configuration variables. For example:

apex opus admin-settings <PACKAGE> <VIEW_URI>

apex opus admin-settings my-shop admin/settings/shop

Using the above example, two new files will be created at /views/html/admin/settings/shop.html and /views/php/admin/settings/shop.php. The view will consist of a form that contains all configuration variables of the my-shop package allowing users to easily update the configuration variables of the package. Generally, this view will need to be tweaked and modified slightly as some form fields may be incorrect, et al.