PHP code example of neuedaten / freezed-desk

1. Go to this page and download the library: Download neuedaten/freezed-desk 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/ */

    

neuedaten / freezed-desk example snippets


use Neuedaten\FreezedDesk\Desk;
use Neuedaten\FreezedDesk\Source\DeskSource;

return [
    'assetRoots' => ['media' => 'data/media'],
    'variables' => array_merge(['siteName' => 'Example'], Desk::variables('site')),
    'contentTypes' => [
        'pages' => ['targetDirectory' => '', 'targetFileExtension' => 'html'],
        'entries' => ['targetDirectory' => 'entries', 'targetFileExtension' => 'html', 'source' => DeskSource::class],
    ],
];

freezed.config.php ─┐
desk/types/*.php  ──┼──▶  Desk UI (local)  ──▶  data/desk.sqlite, data/media/
                    │                                    │
                    └──▶  freezed build  ◀── DeskSource ◀┘
                                │
                                ▼
                             public/