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

Call a controller function within another controller
 
Emperor
Sr. Member
 
Total Posts:  111
Joined:  2007-08-31
 

I want to be able to call another controller function within a controller.

Is this possible and how can it be done?

 
Magento Community Magento Community
Magento Community
Magento Community
 
kiatng
Enthusiast
 
Total Posts:  875
Joined:  2008-09-03
Kuala Lumpur, Malaysia
 

If you can extend your controller, then you can try something like this:

require_once 'Mage/Checkout/controllers/CartController.php';   
class 
YourCompany_YourModule_Checkout_CartController extends Mage_Checkout_CartController
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top