151
Hi. I'm constructing my first module which will have a simple admin side. As far as assembling the admin portion of a module is there anywhere which outlines the a preferred method of organizing files?
The wiki doesn't go into the admin side of things. I've looked at several other modules and think the minimum I need to do is the following
in /admin/index.php
That works fine for me, just want to make sure I'm not missing something critical, specially for security.
The wiki doesn't go into the admin side of things. I've looked at several other modules and think the minimum I need to do is the following
in /admin/index.php
include("../../../mainfile.php");
include_once(XOOPS_ROOT_PATH."/include/cp_functions.php");
xoops_cp_header();
// main admin logic
xoops_cp_footer();
That works fine for me, just want to make sure I'm not missing something critical, specially for security.