PHP code example of chemezov / luya-module-tilda

1. Go to this page and download the library: Download chemezov/luya-module-tilda 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/ */

    

chemezov / luya-module-tilda example snippets


return [
    'modules' => [
        // ...
        'tilda' => [
            'class' => 'chemezov\luya\tilda\frontend\Module',
            'useAppViewPath' => true, // When enabled the views will be looked up in the @app/views folder, otherwise the views shipped with the module will be used.
            
            // Required fields
            'cache' => 'tildaCache',
            'publicKey' => 'YOUR_PUBLIC_KEY',
            'secretKey' => 'YOUR_SECRET_KEY',
            
            // Optional fields
            // You can leave this field empty. In this case, all projects will be shown.
            'projectIds' => [
                123, // Project ID
                456, // Project ID
            ],
            // Block wrapper css class
            'defaultBlockCssClasses' => 'b-tilda-content-outer',
            'blockGroup' => \app\blockgroups\ProjectGroup::class,
            
            // The directory for downloading resources (css, js, img). Make sure it has write permissions.
            'assetsPath' => '@webroot/uploads/tilda',
            'assetsUrl' => '/uploads/tilda',
        ],
        // ...
    ],
    'components' => [
        // Do not specify an empty cache, otherwise go beyond the API request limit
        'tildaCache' => [
            'class' => 'yii\caching\FileCache',
        ],
    ],
];

php composer.phar