Print This Page
Creating the "Hello World" for the ACP (administration contol panel) is not so different than for UI.
But you may want to verify if the user is really an admin, and not a regular user.
// always use admin_init.php for ACP
// verify if administrator? 1 - lowest level of admin, 5 - highest level
// as qE is template based, all output must be contained in $txt['main_body']
$txt['main_body'] = 'Hello World';
// send the content of $txt[main_body] to output
// always remember, flush_tpl() also exit the script, so always put flush_tpl
// at the end of the script!
Powered by qEngine
Generated in 0.016 second | 15 queries