Adds collection API #3

Merged
chris merged 5 commits from collection-api into develop 2021-11-10 14:04:18 +01:00
4 changed files with 19 additions and 2 deletions
Showing only changes of commit 2c14639d0d - Show all commits

View File

@ -11,13 +11,19 @@ return [
'options' => [ 'options' => [
'route' => '/collections', 'route' => '/collections',
'defaults' => [ 'defaults' => [
'controller' => Controller\ArchiveSiteMeta::class, '__NAMESPACE__' => 'ArchiveSiteMeta\Controller',
'controller' => Controller\ArchiveSiteMetaController::class,
'action' => 'index', 'action' => 'index',
], ],
], ],
], ],
], ],
], ],
'controllers' => [
'invokables' => [
Controller\ArchiveSiteMetaController::class => Controller\ArchiveSiteMetaController::class,
],
],
'view_manager' => [ 'view_manager' => [
'template_path_stack' => [ 'template_path_stack' => [
dirname(__DIR__) . '/view', dirname(__DIR__) . '/view',
@ -25,7 +31,7 @@ return [
'template_map' => [ 'template_map' => [
// used to remove available blocks when editing a page // used to remove available blocks when editing a page
'omeka/site-admin/page/edit' => __DIR__ . '/../../../themes/archive/view/omeka/site-admin/page/edit.phtml', 'omeka/site-admin/page/edit' => __DIR__ . '/../../../themes/archive/view/omeka/site-admin/page/edit.phtml',
'archive-site-meta/archive-site-meta/index' => __DIR__ . '/../view/collections/index.phtml',
//'layout/layout' => __DIR__ . '/../../../themes/archive/view/layout/layout.phtml', //'layout/layout' => __DIR__ . '/../../../themes/archive/view/layout/layout.phtml',
//'omeka/index/index' => __DIR__ . '/../../../themes/archive/view/omeka/site/index/index.phtml', //'omeka/index/index' => __DIR__ . '/../../../themes/archive/view/omeka/site/index/index.phtml',
//'omeka/search/results' => __DIR__ . '/../../../themes/archive/view/omeka/search/results.phtml', //'omeka/search/results' => __DIR__ . '/../../../themes/archive/view/omeka/search/results.phtml',

View File

@ -6,8 +6,16 @@ use Laminas\View\Model\ViewModel;
class ArchiveSiteMetaController extends AbstractActionController class ArchiveSiteMetaController extends AbstractActionController
{ {
public function __construct()
{
}
public function indexAction() public function indexAction()
{ {
$view = new ViewModel;
return $view;
} }
} }

View File

@ -0,0 +1,3 @@
<?php echo "this is index.phtml"; ?>