...
Code Block |
---|
// When localizing, the number in format specifications (eg: %1$s) indicates the argument // position as passed to _txt. This can be used to process the arguments in // a different order than they were passed. $cm_my_plugin_texts['en_US'] = array( // Titles, per-controller 'ct.co_my_plugin_model.1' => 'My Plugin Model', 'ct.co_my_plugin_model.pl' => 'My Plugin Models', // Plugin texts 'pl.myplugin.someparam' => 'Some Parameter', 'pl.myplugin.another' => 'Another Parameter' ); |
Enumerations
Plugins may define enumerations in Plugin/MyPlugin/Lib/enum.php
:
Code Block |
---|
class MyPluginFruitEnum
{
const Apple = 'A';
const Orange = 'O';
} |
Use of Standard Views
You may use Registry's "standard" views to easily render your pages in the Registry look. Simply create links from Plugin/MyPlugin/View/Model
to ../../../../View/Standard
. See core Registry views for examples. Note that you will need to define the language texts ct.co_X_model.1
and ct.co_X_model.pl
to use the standard views, replacing X
with the name of your model.
...