Display timestamp of latest bpn xml update in backend
This commit is contained in:
@@ -91,7 +91,14 @@ class BackendController extends ActionController
|
||||
}
|
||||
|
||||
public function indexAction()
|
||||
{}
|
||||
{
|
||||
$updatedTimestampPath = GeneralUtility::getFileAbsFileName('fileadmin/xmlexport/.lastupdate');
|
||||
if ($updatedTimestampPath && file_exists($updatedTimestampPath)) {
|
||||
$updatedTimestamp = file_get_contents($updatedTimestampPath);
|
||||
}
|
||||
|
||||
$this->view->assign('updatedTimestamp', $updatedTimestamp);
|
||||
}
|
||||
|
||||
public function importProductsAction()
|
||||
{
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
<f:section name="Main">
|
||||
<h1>E&P Funktionen</h1>
|
||||
<f:flashMessages />
|
||||
<p>
|
||||
<strong>Letzter XML Abruf aus BusPro: {f:if(condition: updatedTimestamp, then: updatedTimestamp, else: '-')}</strong>
|
||||
</p>
|
||||
<p>
|
||||
<f:link.action action="importProducts" class="btn btn-default">
|
||||
<core:icon identifier="actions-refresh"/>
|
||||
|
||||
Reference in New Issue
Block a user