Which php code do I use to display visible course course categories (without sub categories) on frontpage in correct moodle way?
by Philippe Bertholier -
Number of replies: 1
In reply to Philippe Bertholier
Re: Which php code do I use to display visible course course categories (without sub categories) on frontpage in correct moodle way?
by Philippe Bertholier -
I try with this :
$categories = $DB->get_records('course_categories',array('visible' => '1','depth' => '1'));
i's woks , but it's a moodle right way ?