BoxLang 🚀 A New JVM Dynamic Language Learn More...

Model Utility

v1.3.0 Modules

scs-model-utility

Model Utility

Master Branch Build Status(https://www.forgebox.io/view/model-utility)Master Branch Download Status(https://www.forgebox.io/view/model-utility)

The Model Utility is a module that will simplify the use of Models by providing common functionality and actions done on a model. ...

Getting Started

Get a copy of the module into your project

box install model-utility

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

This Module asumes that you are familiar with the ColdBox Framework architecture.

Installing

Step 1: Instanciate your Model from your newly installed Module Create a new property and inject the model of your choice. The pattern to inject its value is in this manner [Model]@[Module]

    property name='modelUtility' inject='ModelUtility@model-utility'

Step 3: call the print() method and pass your data. Once your property has been declared and injected with the model, you are ready to use it, here is and example of the minimum required parameters you need to pass:

    modelUtility.[desiredfunction]([neded parameters]);
 

Deployment

Authors & Contributors

References

  •   Eduardo Gomez
  • Published
  • 1.3.0 is the latest of 4 release(s)
    Published
  • Published on {{ getFullDate("2022-05-27T16:55:44Z") }}

$ box install model-utility

  • {{ getFullDate("2020-08-18T20:20:18Z") }}
  • {{ getFullDate("2022-05-27T16:55:44Z") }}
  • 1,512
  • 3,047