在我看来,我有这行代码
<a href="<?php echo $this->url.'/login/calllogs/id/'.$record->phone_service_id;?>">Control Panel</a>
在我的登录控制器中我有这个动作
public function calllogsAction(){
if(!Zend_Auth::getInstance()->hasIdentity()){
$this->_redirect('login/login');
} else{
$request = $this->getRequest();
$this->view->assign('url', $request->getBaseURL());
}
}
如何$record->phone_service_id;
在我的操作 ( ) 中获取我的视图变量 ( calllogsAction
)?我没有提交,这只是一个链接。我想我不能在我的行动 calllogsAction 中这样做
$request = $this->getRequest();
$phone_service_id = $request->getParam("id");