PHP code example of matryoshka-model / zf2-matryoshka-module
1. Go to this page and download the library: Download matryoshka-model/zf2-matryoshka-module library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
matryoshka-model / zf2-matryoshka-module example snippets
return [
/* ... */
'modules' => [
/* ... */
'Matryoshka',
],
/* ... */
];
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
}