| | 1 | [[PageOutline]] |
| | 2 | |
| | 3 | = Model-Glue API = |
| | 4 | |
| | 5 | Inside of a controller, calling getModelGlue() will return an instance of the Model-Glue framework. |
| | 6 | |
| | 7 | Of the (many) public methods returned, the only commonly used method is !GetConfigBean(). |
| | 8 | |
| | 9 | == !GetBean(string:name) == |
| | 10 | |
| | 11 | ==== Description: ==== |
| | 12 | |
| | 13 | Returns a CFC instance from the IoC container. |
| | 14 | |
| | 15 | ==== Returns: ==== |
| | 16 | |
| | 17 | A CFC Instance |
| | 18 | |
| | 19 | ==== Arguments: ==== |
| | 20 | |
| | 21 | Name (Required) - The name of the bean to create. If !ColdSpring is used, the name listed is the ID attribute of the bean to be created. If !ChiliBeans is used, the name passed is the name of an XML file to be found in one of the directories listed by the beanMappings setting. |
| | 22 | |
| | 23 | == !GetConfigBean(string:name) == |
| | 24 | |
| | 25 | Deprecated in favor of !GetBean(). Still functional to support reverse compatibility. |
| | 26 | |
| | 27 | == !GetOrmService() == |
| | 28 | |
| | 29 | ==== Description: ==== |
| | 30 | |
| | 31 | Returns the ORM service Model-Glue is configured to use for automated database access. By default, this will return reactor.!ReactorFactory. |
| | 32 | |
| | 33 | ==== Returns: ==== |
| | 34 | |
| | 35 | A CFC Instance |
| | 36 | |
| | 37 | ==== Arguments: ==== |
| | 38 | |
| | 39 | None |