costsrl/cost-translation

v1.0.0 2023-03-24 14:16 UTC

This package is auto-updated.

Last update: 2024-09-24 17:57:57 UTC


README

什么是CostTranslation

CostAuthorization是基于Laminas框架2/3的成本授权模块

CostTranslation究竟是什么?

安装

支持通过composer安装,只需确保在您的composer.json文件中设置了"minimum-stability": "dev",然后运行```php composer.phar require cost/Cost-navigation:zf3```

转到您的应用配置文件./config/application.config.php并添加'CostNavigation'。将costlanguage.global.php.dist复制到./config/autoload。一个示例应用配置可能如下所示

在layout.phtml中渲染菜单

menulanguage()->render();?>

composer.json

"repositories": [ { "type": "vcs", "url": "https://gitlab.cost.it/cost/cost-translation.git" } ]

"

"require-dev" : { "cost/cost-translation" : "dev-ZF3" }

为自动加载打开主composer.json文件,并在autoload键下添加"autoload" : { "psr-4" : { "CostTranslation" : "vendor/cost/cost-translation/src", }}


module requirements

'modules' => array( 'Application', 'CostBase', 'CostAuthentication', 'CostAuthorization' )


CostAuthorization configuration
=============

example usage
<h1 class="display-4"><?php echo $this->translate('welcome','db');?> to<br>Laminas MVC Skeleton Application</h1>
Pay Attention to context 'db'