PHP code example of drajathasan / slims-opac-template-skelton

1. Go to this page and download the library: Download drajathasan/slims-opac-template-skelton 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/ */

    

drajathasan / slims-opac-template-skelton example snippets



use SLiMS\Template\Skelton\Core as Template;

w Template;

// set basic properties
$template->setProperty('notes', $notes??null);
$template->setProperty('subject', $subject??null);
$template->setProperty('metadata', $metadata??null);
$template->setProperty('maincontent', $main_content??'');
$template->setProperty('image_src', $image_src??'');

// Rendering opac to template
$template->render($opac??$this);