liupan-v / think-theme Goto Github PK
View Code? Open in Web Editor NEWthinkpkp5的一个无侵入式多主题插件
License: Apache License 2.0
thinkpkp5的一个无侵入式多主题插件
License: Apache License 2.0
我想知道这个插件怎么用?我在配置的时候没成功!我的微信geekxz
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')();
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.