php 引用其他action中的方法

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

  可用下列代码

  

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

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

 

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

posted @ 2013-10-21 16:37  xh_a1216  阅读(467)  评论(0编辑  收藏  举报