Home  >  Article  >  Backend Development  >  Smarty 的控制器怎么调用其他文件的方法

Smarty 的控制器怎么调用其他文件的方法

WBOY
WBOYOriginal
2016-06-13 13:49:261013browse

Smarty 的控制器如何调用其他文件的方法?
我需要3个控制器都调用一个方法, 这个方法放在另外一个文件中, 用

include "Address";

然后

$address = new Address();

导致页面错误...

------解决方案--------------------
Smarty是页面层显示的吧 跟你调用方法有什么关系?

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