I cannot add new block

I cannot add new block

by sarah aldossari -
Number of replies: 2
I created new block folder with a name of "FirstBlock" under/moodle/blocks/FirstBlock . This folder has all the 4 required files block_FirstBlock.php, version.php, db/access.php, and lang/en/block_FirstBlock.php.
But when I login to my moodle account and go to site adminstration/ notifications it will not show that block, so I cannot install it.
What is the problem? I have no experience with moodle this is my first block.

Thank you,
Sarah
Average of ratings: -
In reply to sarah aldossari

Re: I cannot add new block

by Jon Bolton -
Picture of Particularly helpful Moodlers Picture of Testers
This is a developer question rather than a blocks question, so moving to the general developer forum.
In reply to sarah aldossari

Re: I cannot add new block

by Dominique Palumbo -
Picture of Particularly helpful Moodlers Picture of Plugin developers
Hi,

I've made some small modifications but the main was the capital letter in filename and directory.
I change capital letter everywhere... even if it's not neccessary everywhere!

I also change the version of Moodle requiered.

The coding coventions are important

Hope it will help.

Dominique.