私の見解では、このコード行があります
<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");