998. Class

998.1. Zend\Mvc\View\Http\InjectTemplateListener

998.1.1. Methods

998.1.1.1. attach

attach()

Attach listeners

Parameters:Events
Return type:void

998.1.1.2. detach

detach()

Detach listeners

Parameters:Events
Return type:void

998.1.1.3. injectTemplate

injectTemplate()

Inject a template into the view model, if none present

Template is derived from the controller found in the route match, and, optionally, the action, if present.

Parameters:MvcEvent
Return type:void

998.1.1.4. inflectName

inflectName()

Inflect a name to a normalized value

Parameters:string
Return type:string

998.1.1.5. deriveModuleNamespace

deriveModuleNamespace()

Determine the top-level namespace of the controller

Parameters:string
Return type:string

998.1.1.6. deriveControllerSubNamespace

deriveControllerSubNamespace()

@param $namespace

Return type:string

998.1.1.7. deriveControllerClass

deriveControllerClass()

Determine the name of the controller

Strip the namespace, and the suffix “Controller” if present.

Parameters:string
Return type:string