artisancms/theme

ArtisanCMS的简单主题包

0.0.4 2016-09-17 21:10 UTC

This package is auto-updated.

Last update: 2024-09-19 16:20:58 UTC


README

一个非常简单的包,它为应用程序查找主题定义了一个新的位置。

在项目的根目录下创建一个themes目录,如果你使用了安装器,这应该已经发生了。但如果不存在,只需创建文件夹即可。然后在其中创建你的主题文件夹。

你需要更新config文件夹中的artisancms.php文件,同样地,这应该从安装中存在。你需要更新以下内容:

    // change clean-theme to the name of the folder in
    // the themes folder.
    'theme' => theme('clean-theme'),

可以这样访问

theme::folder.viewname

// or

theme::viewname