genuxsoft / blogbundle
非常简单的博客组件
dev-master
2019-06-19 14:50 UTC
This package is auto-updated.
Last update: 2024-09-20 03:25:34 UTC
README
步骤 1:下载组件
打开命令行,进入您的项目目录,并执行以下命令以下载此组件的最新稳定版本
$ composer require genuxsoft/BlogBundle
此命令需要您全局安装了Composer,如Composer文档中的安装章节所述。
步骤 2:启用组件
然后,通过将其添加到项目中app/AppKernel.php文件中注册的组件列表中来启用该组件
// app/AppKernel.php // ... class AppKernel extends Kernel { public function registerBundles() { $bundles = [ // ... new Acme\BlogBundle\AcmeBlogBundle(), ]; // ... } // ... }
步骤 2:使用
for render $this->render('@AcmeBlog/folder/file', []);