controller resolves template map

This commit is contained in:
buttle 2021-10-24 22:42:03 +02:00
parent b072beed88
commit 2c14639d0d
4 changed files with 19 additions and 2 deletions

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"; ?>