Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37690

Re: API call or this-> function to find the current course section?

$
0
0
by Brian Merritt.  

Thanks - this is for use in a theme, but I already know if I am in  a course or not.  

If yes, then the user will be either in course/view.php or in mod/modname/view.php so the URL will give me the extra info I need - many thanks!

Moodle has so much info cached in memory, I assumed there might be a $PAGE->course->currentsection.

 

 


Viewing all articles
Browse latest Browse all 37690

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>