PHP code example of nassau / kunstmaan-import-bundle
1. Go to this page and download the library: Download nassau/kunstmaan-import-bundle 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/ */
nassau / kunstmaan-import-bundle example snippets
class FoobarAdminListConfigurator extends AbstractDoctrineORMAdminListConfigurator implements ImportWizardAdminListConfiguratorInterface
{
/**
* Add a button to the admin list pointing to the import module
*/
public function buildListActions()
{
$this->addListAction(new SimpleListAction([
'path' => 'acmebundle_admin_foobar_import_upload',
'params' => [],
], 'Upload Excel file', 'upload'));
}
public function getImportType()
{
return 'foobar';
}