puts route/controller structure in place

This commit is contained in:
buttle 2021-10-24 12:01:37 +02:00
parent 3164787d19
commit b072beed88
4 changed files with 33 additions and 2 deletions

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