Generate CRUD Files
apex opus crud <FILENAME> --dbtable <TABLE> [--view <PATH>] [--magic]
|
|
Will generate the necessary PHP library, data table and form components, and views for basic CRUD operations of a database table.
|
Parameters
| Parameter | Description |
|---|---|
| filename | Location of the PHP model class to generate, relative to the /src/ directory. |
Flags
| Flag | Description |
|---|---|
| --dbtable | The database table name to generate CRUD controller for. |
| --view | Path of the view to generate. |
| --magic | Whether or not to use magic get / set methods within the model. |
Examples
- ./apex opus crud MyShop/ProductController --dbtable products --view admin/shop/products