Home  >  Article  >  Backend Development  >  急急急急急急急!

急急急急急急急!

WBOY
WBOYOriginal
2016-06-23 14:04:54850browse

在控制器里xxxAction() {
$this->view->var='aabbcc';
}
如何在视图xxx.phtml里面拿到var 的值 ?


回复讨论(解决方案)

你要分配到视图里吧

你用的框架是什么?每个框架往页面赋值用的也不一样!

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
Previous article:菜鸟求指导Next article:多表联合查询方案