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 33 additions and 2 deletions
Showing only changes of commit b072beed88 - Show all commits

View File

@ -1,16 +1,34 @@
<?php
use Laminas\Router\Http\Literal;
namespace ArchiveSiteMeta;
return [
//https://docs.laminas.dev/tutorials/getting-started/routing-and-controllers/
'router' => [
'routes' => [
'archiveSiteMeta' => [
'type' => \Laminas\Router\Http\Literal::class,
'options' => [
'route' => '/collections',
'defaults' => [
'controller' => Controller\ArchiveSiteMeta::class,
'action' => 'index',
],
],
],
],
],
'view_manager' => [
'template_path_stack' => [
dirname(__DIR__) . '/view',
],
'template_map' => [
// used to remove available blocks when editing a page
'omeka/site-admin/page/edit' => __DIR__ . '/../../../themes/archive/view/omeka/site-admin/page/edit.phtml',
//'layout/layout' => __DIR__ . '/../../../themes/archive/view/layout/layout.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/site-admin/page/edit' => __DIR__ . '/../../../themes/archive/view/omeka/site-admin/page/edit.phtml',
//'omeka/search/results' => __DIR__ . '/../../../themes/archive/view/omeka/search/results.phtml',
//'common/site-list-entry' => __DIR__ . '/../../../themes/archive/view/common/site-list-entry.phtml',
],
],

View File

@ -0,0 +1,13 @@
<?php
namespace ArchiveSiteMeta\Controller;
use Laminas\Mvc\Controller\AbstractActionController;
use Laminas\View\Model\ViewModel;
class ArchiveSiteMetaController extends AbstractActionController
{
public function indexAction()
{
}
}

View File