General developer forum

Regarding overriding

 
Picture of Ravi kumar
Regarding overriding
 

Hello Everyone,

In moodle3.3 how to override myoverview block renderer which are present in output folder ?

i try as but it not working -

require_once($CFG->dirroot . '/blocks/myoverview/classes/output/renderer.php');

class theme_vakmoodle_renderer extends renderer {

    public function render_main(main $main) {

       // return $this->render_from_template('block_myoverview/main', $main->export_for_template($this));

       return ''hello";

       

    }


}


Thanks in advance




 
Average of ratings: -
Picture of David Mudrák
Re: Regarding overriding
 
Average of ratings: -
Picture of Ravi kumar
Re: Regarding overriding
 

Thanks for reply  

but in moodle3.3 myoverview block renderer is differ to others renderer. 



 
Average of ratings: -