Put following sample xml code on your config.xml file to define a controller for vendor cpanel.
<frontend> <routers> <vendors> <args> <modules> <vendorscredit before="VES_Vendors">VES_VendorsCredit</vendorscredit> </modules> </args> </vendors> </routers> </frontend>
You need to change the name of <vendorscredit> tag and the extension name VES_VendorsCredit corresponding with your extension.
The controller class must be extended the class VES_Vendors_Controller_Action
class VES_VendorsCredit_Credit_WithdrawController extends VES_Vendors_Controller_Action { public function indexAction() { $this->loadLayout()->_setActiveMenu('credit') ->_title($this->__('Credit')) ->_title($this->__('Withdraw')) ->_addBreadcrumb(Mage::helper('vendorscredit')->__('Credit'), Mage::helper('vendorscredit')->__('Credit')) ->_addBreadcrumb(Mage::helper('vendorscredit')->__('Withdrawal'), Mage::helper('vendorscredit')->__('Withdrawal')); $this->renderLayout(); }