Skip to content
Snippets Groups Projects
Commit a571a60e authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Creat empty backend module

parent cf015a22
No related branches found
No related tags found
No related merge requests found
<?php
namespace SGalinski\SgJobs\Controller;
/***************************************************************
* Copyright notice
*
* (c) sgalinski Internet Services (https://www.sgalinski.de)
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
/**
* The backend module controller
*/
class BackendController extends ActionController {
/**
* Show all job offers and options to manage them
*
* @return void
*/
public function indexAction() {
$someData = [
0 => 'test1', 1 => 'test2', 2 => 'test3'
];
$this->view->assign('someData', $someData);
}
}
<f:layout name="Default" />
<f:section name="main">
<ul>
<f:for each="{someData}" as="item" key="itemUid">
<li>
<f:link.action action="detail" arguments="{itemUid : '{itemUid}'}">
<f:render partial="ListEntry" arguments="{item : item}" />
</f:link.action>
</li>
</f:for>
</ul>
</f:section>
......@@ -8,7 +8,7 @@
],
"version": "1.0.1",
"support": {
"issues": "https://gitlab.sgalinski.de/typo3/sg_jobs"
"issues": "https://gitlab.sgalinski.de/Oppermann/sg_jobs"
},
"require": {
"typo3/cms": "^7.6"
......
......@@ -20,10 +20,10 @@ if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'SGalinski.sg_jobs',
'web',
'Moderation',
'Backend',
'',
[
'Moderation' => 'list',
'Backend' => 'index',
],
[
'access' => 'user,group',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment