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);