PHP code example of oneplace / oneplace-templates
1. Go to this page and download the library: Download oneplace/oneplace-templates 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/ */
oneplace / oneplace-templates example snippets
# Define Body
$sCardBody = 'YOUR-HTML-OR-PARTIAL-HERE';
# Define Footer
$sCardFooter = $this->partial('templates/card/basic_footer', [
'sButtonLabel' => $this->translate('Save Calendar'),
'sButtonIcon' => 'fas fa-save',
'bCancelButton' => true,
'sCancelButtonAction' => '/calendar',
]);