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