Adds cross site api #4
|
@ -1,16 +1,34 @@
|
||||||
<?php
|
<?php
|
||||||
|
use Laminas\Router\Http\Literal;
|
||||||
namespace ArchiveSiteMeta;
|
namespace ArchiveSiteMeta;
|
||||||
|
|
||||||
return [
|
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' => [
|
'view_manager' => [
|
||||||
'template_path_stack' => [
|
'template_path_stack' => [
|
||||||
dirname(__DIR__) . '/view',
|
dirname(__DIR__) . '/view',
|
||||||
],
|
],
|
||||||
'template_map' => [
|
'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',
|
//'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',
|
||||||
'omeka/site-admin/page/edit' => __DIR__ . '/../../../themes/archive/view/omeka/site-admin/page/edit.phtml',
|
|
||||||
//'common/site-list-entry' => __DIR__ . '/../../../themes/archive/view/common/site-list-entry.phtml',
|
//'common/site-list-entry' => __DIR__ . '/../../../themes/archive/view/common/site-list-entry.phtml',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
|
@ -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()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue