PHP code example of t4web / site-config

1. Go to this page and download the library: Download t4web/site-config 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/ */

    

t4web / site-config example snippets



return array(
    'modules' => array(
        // ...
        'T4web\SiteConfig',
    ),
    // ...
);

$siteConfig = $serviceLocator->get("T4web\SiteConfig\Config");
$siteConfig->get('items-per-page', 'products');
//...
$siteConfig->set('items-per-page', 'products', 10);
bash
$ php public/index.php site-config init