LMSouq
moodle-core Open

How to get the current courseid for the current page in moodle

RA
Rayzen Shrestha
1 month ago
3 views
Problem Description
i have an addres moodle/course/modedit.php?add=page&type=&course=4&section=1&return=0&sr=0 in moodle. How can i get the courseid that is 4? I tried $COURSE->id but it doesnot worked. Please help me with the solution.

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base