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

WBOY
Release: 2016-06-13 13:49:26
Original
1011 people have browsed it

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

include "Address";

然后

$address = new Address();

导致页面错误...

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

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!