matryoshka-model/zf2-matryoshka-module
Composer 安装命令:
composer require matryoshka-model/zf2-matryoshka-module
包简介
ZF2 integration module for Matryoshka
README 文档
README
ZF2 module for Matryoshka -------------------------ZF2 integration module for Matryoshka.
This repository contains a ZF2 module that registers default services and provides a set of useful controller plugins.
Community
For questions and support please visit the slack channel (get an invite here).
Installation
Using composer:
Add the following to your composer.json file:
"require": { "matryoshka-model/zf2-matryoshka-module": "~0.8.0" }
Finally, add the module name to your project's config/application.config.php under the modules
key:
return [ /* ... */ 'modules' => [ /* ... */ 'Matryoshka', ], /* ... */ ];
How-to
Before using this module you only need to configure Matryoshka settings according to your model.
Then you can use built-in plugins in your controllers.
Example:
public function fooAction() { $myModel = $this->model()->get('MyModel'); // Retrieve a model instance through the ModelManager $myObject = $this->object()->get('MyObject'); // Retrieve an object instance through the ModelManager }
统计信息
- 总下载量: 888
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 30
- 推荐数: 5
其他信息
- 授权协议: BSD-2-Clause
- 更新时间: 2014-08-29
