public function helloAction() {
$a =10;
}
public function thanksAction() {
$b = 20;
$b = $b + $a; //`enter code here` how can i get this $a variable value from helloAction() to thanksAction()
// without use _redirect() and i mean don't send url helloAction() to thanksAction() by any method
}
在zend框架中給出解決方案。在這裏輸入代碼我怎麼能從helloAction()獲得這個$變量值到thanksAction()而不使用_redirect(),我的意思是不要發送url helloAction()給任何方法的thanksAction()如何將一個變量從一個動作傳遞給另一個動作而不重定向到Zend框架中的另一個動作(bsc)
在會話或註冊表中設置$ helloAction方法的值,然後在thanksAction中使用 –
bsc是什麼意思? – vascowhite