Home > Backend Development > PHP Tutorial > 急急急急急急急!

急急急急急急急!

WBOY
Release: 2016-06-23 14:04:54
Original
889 people have browsed it

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


回复讨论(解决方案)

你要分配到视图里吧

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template