Adds cross site api #4
|
@ -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',
|
||||
|
|
|
@ -6,8 +6,16 @@ use Laminas\View\Model\ViewModel;
|
|||
|
||||
class ArchiveSiteMetaController extends AbstractActionController
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function indexAction()
|
||||
{
|
||||
$view = new ViewModel;
|
||||
return $view;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
<?php echo "this is index.phtml"; ?>
|
Loading…
Reference in New Issue