PHP code example of jeyroik / extas-system-options

1. Go to this page and download the library: Download jeyroik/extas-system-options 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/ */

    

jeyroik / extas-system-options example snippets


$system = new System();

$option = $system->systemOptions()->one([ISystemOption::FIELD__NAME => 'some.name']);
print_r($option->getValue());

//or

if ($system->hasOption('some.name')) {
    print_r($system->getOptionValue());
}