PHP code example of luoyy / think-blade

1. Go to this page and download the library: Download luoyy/think-blade 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/ */

    

luoyy / think-blade example snippets



return [
        // 模板引擎类型使用Blade
        'type'            => 'Blade',
        // 模板目录名
        'view_dir_name'   => 'view',
        // 模板起始路径 不设置则自动寻找
        'view_path'       => '',
        // 模板后缀
        'view_suffix'     => 'blade.php',
        // 扩展的模板文件名
        'view_ext_suffix' => ['php', 'css', 'html'],
        // 模板文件名分隔符
        'view_depr'       => DIRECTORY_SEPARATOR,
        // 模板缓存路径,不设置则在runtime/temp下
        'cache_path'      => ''
    ],