When IClick on the Notifications link in the Site Administration block, Moodle 
don’t  notifie me  that it has installed the [[helloworld]] block.please whatis 
the problem?Here is the block :
--------------------------------------------------------------
<?php
class block_helloworld extends block_base {
function init() {
$this->title = get_string('helloworld', 'block_helloworld');
$this->version = 2009050700;
}//function init
get_content() function. Block content is stored in $this->content:
function get_content() {
if ($this->content !== NULL) {
return $this->content;
}//if
$this->content = new stdClass;
$this->content->text = 'Hello World!';
return $this->content;
}//function get_content
}//class block_helloworld
?>----------------------------------------------
i have called this file,  block_helloworld.php and i have place it inside a 
folder that i have called helloworld that i have placed inside the blocks 
directory of moodle (2.x). I have followed the exemple of the moodle doc.
Thanks in advanceNacer.





Reply via email to