Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Using controller in plug-ins

...

[DraftMode]

  • Plugin_Bootstrap class must not be named "Bootstrap" but for example "Init", otherwise you get Zend Issues
  • As Example see class editor_Plugins_MatchAnalysis_Init
  • An ACL entry must be added for the controller resource: "editor_plugin_matchanalysis_name"

Localization of plug-ins

See MatchAnalysis Plug-In for reference

Hooking in plug-ins

Plug-ins reside in their own plug-in folder. They are NOT intermingled with the core code of translate5. They hook into the translate5 core code by using events thrown by the translate5 core code.

To use controller in a plug-in, you have to place them beneath the Controller-directory of the Zend-Module of translate5, the plug-in is written for.

As an example you can have a look at the Testplugin/TestController.php at

/application/modules/editor/Controllers/Plugins/Testplugin/TestController.php

Decision helper for new features

...

More content has to be added. Until then please visit our source code repository and look for the plug-in documentation in the docs-folder of Zf_Extended.

An overview over already existing plug-ins you can find here.