Adds cross site api #4

Merged
chris merged 10 commits from develop into main 2021-12-15 10:51:55 +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' => [
'route' => '/collections',
'defaults' => [
'controller' => Controller\ArchiveSiteMeta::class,
'__NAMESPACE__' => 'ArchiveSiteMeta\Controller',
'controller' => Controller\ArchiveSiteMetaController::class,
'action' => 'index',
],
],
],
],
],
'controllers' => [
'invokables' => [
Controller\ArchiveSiteMetaController::class => Controller\ArchiveSiteMetaController::class,
],
],
'view_manager' => [
'template_path_stack' => [
dirname(__DIR__) . '/view',
@ -25,7 +31,7 @@ return [
'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',
'archive-site-meta/archive-site-meta/index' => __DIR__ . '/../view/collections/index.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',

View File

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

View File

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