mod/page/view.php?id=137
That's how my url appears in the browser.
Tried almost every single exemple about $cmid but with no success. The only thing i can return with success on my test.php is the $COURSE->id that i've posted above.
=/
I could post any exemple here that i've tested, but it is too much to see... tried again after your post to do this
<?php
require_once('config.php');
require_once('lib.php');
require_once($CFG->dirroot.'/mod/forum/lib.php');
require_once($CFG->libdir.'/completionlib.php');
$cmid = required_param('id', PARAM_INT);
echo $cmid;
?>
Returns nothing.