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

How do i call the function of other module
 
nkdineshdct
Member
 
Avatar
Total Posts:  66
Joined:  2008-08-29
India
 

Hello Magento Masters,

How do i call the function of one module from another module.

i want to call the function getPaymentHtml() in Info.php file under sales/order module from another module.

Mage::app()->getLayout()->createBlock(’adminhtml/sales_order_view_tab_info’)->getPaymentHtml();

Used the following above code and it gives the error.

Fatal error: Call to a member function getPaymentHtml() on a non-object

Pls give me the suggestion.

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