Module admin - redirect to home after action [solved]
Posted: Tue Sep 02, 2008 10:01 am
I'm still having fun writing my first module.
One thing I need to do a lot in the admin area is go back to the module's admin home after performing an action (say a record update), instead of having the code just echo "Record Updated" and then sit there. Currently I'm using a redirect something like:
I'm sure there's a more graceful way of doing it - can anybody point me in the right direction please?
One thing I need to do a lot in the admin area is go back to the module's admin home after performing an action (say a record update), instead of having the code just echo "Record Updated" and then sit there. Currently I'm using a redirect something like:
Code: Select all
$header='Location: http://mysite.com/admin/moduleinterface.php?mact=mymodule,,defaultadmin,0&myparam='.$myparams['someparam'];
header($header);