Mage::registry 在方法之间不成立。想法?(是的,首先调用 displayOrder)。
public function displayOrderAction()
{
$this->loadLayout();
$post = $this->getRequest()->getPost();
$block = $this->getLayout()->getBlock('returner.displayorder');
$returnOrder = Mage::getModel('returner/order')->getOrder($post['increment_id'], $post['email']);
Mage::register( 'returnOrder', $returnOrder );
$this->renderLayout();
}
public function verifyItemsAction()
{
$post = $this->getRequest()->getPost();
$order = Mage::registry('returnOrder');
}