Home >Backend Development >PHP Tutorial >关于LazyPHP框架,求指导?

关于LazyPHP框架,求指导?

WBOY
WBOYOriginal
2016-06-23 14:06:181026browse

$data['title'] = $data['top_title'] = ‘首页’;
最后 来个等号“首页” 是什么意思?
render 函数 是不是相当于 $ob->assign啊


回复讨论(解决方案)

$data['title'] = $data['top_title'] = ‘首页’;
同时对 $data['title'] 和 $data['top_title'] 赋值

render 函数用于加载并执行模板
模板依然是php-html混编代码
LazyPHP只负责模块间的调度

示例文件需要运行在启用短标记的环境中

由于没有模板引擎和ORM,1.18M 就显得太臃肿了

$data['title'] = $data['top_title'] = ‘首页’;
最后 来个等号“首页” 是什么意思?
render 函数 是不是相当于 $ob->assign啊

老韩 你行不行啊

等号不是赋值的意思吗?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn