generateControllerprivate
Generates and instantiates a controller.
The type of the generated controller factory is derived from the context. If the context is an array an array controller is generated, if an object, an object controller otherwise, a basic controller is generated.
Please login to continue.