PHP code example of dd / evolutioncms-snippets-ddgetdocuments
1. Go to this page and download the library: Download dd/evolutioncms-snippets-ddgetdocuments 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/ */
dd / evolutioncms-snippets-ddgetdocuments example snippets
// Include (MODX)EvolutionCMS.libraries.ddInstaller
staller/DDInstaller::install([
'url' => 'https://github.com/DivanDesign/EvolutionCMS.snippets.ddGetDocuments',
]);
// Include (MODX)EvolutionCMS.libraries.ddTools
ddTools/modx.ddtools.class.php'
);
// Run (MODX)EvolutionCMS.snippets.ddGetDocuments
\DDTools\Snippet::runSnippet([
'name' => 'ddGetDocuments',
'params' => [
// It is convenient to set the parameter as a native PHP array or object
'providerParams' => [
'parentIds' => 1,
],
'outputter' => 'json',
],
]);