boehsermoe/luya-blockcollection

该包的最新版本(dev-master)没有可用的许可证信息。

安装: 39

依赖者: 0

建议者: 0

安全性: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

语言:CSS

类型:luya-extension

dev-master 2019-07-14 06:09 UTC

This package is auto-updated.

Last update: 2024-09-04 19:33:26 UTC


README

文件是用 module/create 命令创建的。

安装

要将模块添加到项目中,请进入配置文件的模块部分

return [
    'modules' => [
        // ...
        'blockcollection' => [
            'class' => 'boehsermoe\blockcollection\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.
        ],
        'blockcollectionadmin' => 'boehsermoe\blockcollection\admin\Module',
        // ...
    ],
];

布局主体

    // ...
    <body class="homepage is-preload">
    <?php $this->beginBody() ?>

        <div id="page-wrapper">
            <?php echo $this->render('@blockcollection/views/layouts/_header') ?>
            <?php echo $content ?>
            <?php echo $this->render('@blockcollection/views/layouts/_footer') ?>
        </div>

    <?php $this->endBody() ?>
    </body>
    // ...