I am using same controller for front-end and back-end action, everything works fine except setting global messages when redirect back to desired admin page.
I have used standard admin session handler to set messages for admin actions:
$notifierObject = Mage::getSingleton('adminhtml/session');
Controller being called is of front-end type.
Redirected admin page is an order view page.
Thanks in advance.
Customer action : my.testdomain.com/modulename/controllerfrontname/action1 is called when form is submitted.
Similar form is there in admin sales order view page. Admin form submit action : my.testdomain.com/modulename/controllerfrontname/action1 , as you can see the same action is called.
frontName of admin and frontend routers is the same - modulename.(But I guess, this is not causing any problem)
I am successfully getting redirected back to admin sales order view page, but without any global messages that I have set in $notifierObject of admin session. That's the only problem.