php 引用其他action中的方法

例如要调用IndexAction里的isonline();

  可用下列代码

  

import('@.Action.IndexAction');
$Index=new IndexAction();
$Index->isonline();

以前在其他案例里看到过可以直接引用的,留待以后解决。

模版世界:http://www.templatesy.com

原文地址:https://www.cnblogs.com/w2xh/p/3380813.html