Skip to main content
added 20 characters in body
Source Link
philwinkle
  • 35.8k
  • 5
  • 91
  • 146

In Realuk_Login_IndexController::loginAction() you're setting response body but response itself is never send to the client, instead you're redirecting to the home page. You can either send the response by using:

$this->getResonse()->sendResponse();

$this->getResonse()->sendResponse();

or pass json data to the home page:

$jsonData = array( 'json' => Mage::helper('core')->urlEncode( Mage::helper('core')->jsonEncode($result) )); $this->_redirect('home', $jsonData);

$jsonData = array(
    'json' => Mage::helper('core')->urlEncode(
        Mage::helper('core')->jsonEncode($result)
));
$this->_redirect('home', $jsonData);

In Realuk_Login_IndexController::loginAction() you're setting response body but response itself is never send to the client, instead you're redirecting to the home page. You can either send the response by using:

$this->getResonse()->sendResponse();

or pass json data to the home page:

$jsonData = array( 'json' => Mage::helper('core')->urlEncode( Mage::helper('core')->jsonEncode($result) )); $this->_redirect('home', $jsonData);

In Realuk_Login_IndexController::loginAction() you're setting response body but response itself is never send to the client, instead you're redirecting to the home page. You can either send the response by using:

$this->getResonse()->sendResponse();

or pass json data to the home page:

$jsonData = array(
    'json' => Mage::helper('core')->urlEncode(
        Mage::helper('core')->jsonEncode($result)
));
$this->_redirect('home', $jsonData);
Source Link
Ronwe
  • 51
  • 4

In Realuk_Login_IndexController::loginAction() you're setting response body but response itself is never send to the client, instead you're redirecting to the home page. You can either send the response by using:

$this->getResonse()->sendResponse();

or pass json data to the home page:

$jsonData = array( 'json' => Mage::helper('core')->urlEncode( Mage::helper('core')->jsonEncode($result) )); $this->_redirect('home', $jsonData);