Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.03 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.03 KB

Schranz Template Renderer Integration for Smarty

Integrate the templating Smarty Adapter into the Spiral Framework.

Part of the Schranz Templating Project.

Installation

Install this package via Composer:

composer require schranz-templating/spiral-smarty-integration

Register the Bootloader class in your app/src/Application/Kernel.php if not already automatically added by the framework:

class Kernel extends \Spiral\Framework\Kernel
{
    protected const LOAD = [
        // ...
        \Schranz\Templating\Integration\Spiral\Smarty\Bootloader\SmartyBootloader::class,
    ];
}

Configuration

The integration provides the following configuration.

// app/config/schranz_templating_smarty.php

declare(strict_types=1);

return [
    'paths' => [
        'hello' => 'app/views',
    ],
    'cache_dir' => 'runtime/cache/smarty/cache',
    'compile_dir' => 'runtime/cache/smarty/compile',
];