PHP code example of lochmueller / index
1. Go to this page and download the library: Download lochmueller/index library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lochmueller / index example snippets
class MyExtension extends RecordExtender
{
public function getName(): string
{
return 'my_extension';
}
protected function getBaseConfiguration(): array
{
return [
'table' => 'tx_myextension_domain_model_item',
'arguments' => [
'tx_myextension_pi1' => [
'controller' => 'Item',
'action' => 'detail',
'item' => '{uid}',
],
],
];
}
}