Code Monkey home page Code Monkey logo

think-theme's People

Contributors

liupan-v avatar mypackages avatar

Stargazers

 avatar  avatar  avatar

think-theme's Issues

我composer 安装后 配置了如下,在模块config/think_theme.php配置了但是访问路径还是不对

return [
'is_open' => true, //是否启用多主题配置,true为不开启,走框架默认的模板驱动
'current' => 'moblie', //必填,当前主题名称,可在代码里动态赋值来改变当前主题
'default' => 'moblie', //必填,默认主题名称
'theme_path' => 'theme', //必填,可为空,主题目录地址,上级是对应的模块地址,如填theme,默认主题的路径则为application/模块名/theme/default
//'callback' => function(){} //选填,实例化模板引擎的时候执行的方法,根据自己需求或许可能用到
];

目录构建
application/index/theme 下面有moblie和pc,但是以上配置无法访问,提示
模板文件不存在 www\application\index\view\index\index.html

查了一下,应该是没自动加载,

想到之前修改过一个文件,有错误,如果不修改无法运行,错误地方
vendor\liupan-v\think-theme\src\Driver.php on line 57
语法错误: unexpected '('

这行的代码是:config('think_theme.callback')();

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.