PHP code example of cors / data-definitions
1. Go to this page and download the library: Download cors/data-definitions 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/ */
cors / data-definitions example snippets
// Add to config/bundles.php
return [
// ...
\Instride\Bundle\DataDefinitionsBundle\DataDefinitionsBundle::class => ['all' => true]
];
bash
docker compose up -d
docker compose exec -T php composer install
docker compose exec -T php vendor/bin/pimcore-install \
--install-profile='App\InstallProfile\StudioInstallProfile' \
--admin-username=admin --admin-password=admin --no-interaction
docker compose exec -T php bin/console pimcore:bundle:install DataDefinitionsBundle
docker compose exec -T php bin/console assets:install --symlink --relative public