Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Display a page with only one word
 
Stefanos Z
Jr. Member
 
Total Posts:  9
Joined:  2008-07-17
Athens,GR
 

Hello.

I have a controller processing that has action validate.

When validate is called I want depending on the result of the validation to display :

<html>
<body>
OK
</body>
</html>

or

<html>
<body>
NOTOK
</body>
</html>

How can I do that???

I don’t want to change the processing block file

Can you please help me???

 
Magento Community Magento Community
Magento Community
Magento Community
 
LeeSaferite
Guru
 
Avatar
Total Posts:  322
Joined:  2007-08-31
Lake City, FL
 

public function myAction()
{
   $result 
"OK";
   
$this->getResponse()->setBody("<html><body>{$result}</body></html>");
}
 
Magento Community Magento Community
Magento Community
Magento Community
 
Stefanos Z
Jr. Member
 
Total Posts:  9
Joined:  2008-07-17
Athens,GR
 

Thank you!!!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top