The last post covered the initial steps in starting bim2. Including the choice of the name bim2. But there is a problem.
It’s starting to look like the choice of bim2 as a name might not have been great. It appears Moodle may not like a digit in the name of a module. Confirmed
When creating a new module, the new name of the module must not contain numbers or other special characters!
The end result is that the “Add an activity” menu in Moodle only ever shows bim and not bim2 which means adding the activity won’t work.
The name will have to change. At least within Moodle.
This is just a bit of a bugger. Will mean I have to change the name of the git repository and a whole lot of other mucking around. I can’t really go back to use bim as the repo name, as that name is already taken by the Moodle 1.9 version of bim. I really don’t like this, both the need to change and the limited knowledge of mine resulting in the need for the change.
So, should the name be bimTwo? It’s probably the best compromise. But still ugly. Especially since the #bim2 tag is already being used and makes the most sense.
Solution? For now, I think the plan will be to use bimTwo internal to Moodle, but encourage and use bim2 elsewhere. Maybe bim_two instead?
What do you think? Is there a better solution?
Actually, it will have to be bimtwo due
- underscore being a special character and not working within a Moodle module name;
- uppercase characters don’t work/aren’t supported in table names in the Moodle database.