0

我有这个代码,

while($com_reg_credit){
  foreach($payers as $payer){

    echo $this->requestAction('/admin/add_to_list/' . $payer . '/' . $_SESSION['User']['Team']['id'] . '/?credit=1' );
  }

}

它的作用是,while($com_reg_credit){它执行其中的过程。我想调用指定的函数,url但不知何故它不起作用。有人可以告诉我如何解决这个问题吗?

4

1 回答 1

0

也许如果你尝试这样的事情:

从文档:

echo $this->requestAction(array('controller' => 'articles', 'action' => 'featured'), array('named' => array('limit' => 3)));
echo $this->requestAction(array('controller' => 'articles', 'action' => 'view'), array('pass' => array(5)));

编辑:

while($com_reg_credit){
    foreach($payers as $payer){
        echo $this->requestAction(array('controller' => 'admin', 'action' => 'add_to_list'), array($payer, $_SESSION['User']['Team']['id'], '?credit1'));
    }
}
于 2012-09-10T21:07:51.210 回答