No need to apologize when asking for help. We've all benefited from the CodeIgniter community. The best thing to do is participate and return the favor, if possible.
As far as your issue goes, I ran into similar (if not the same) problems when I started working with Codex. After messing with it quite a bit, I went back to the examples and I finally discovered what works.
To use your application, Codex wants your main form to be named music_form.yml. If you are referring to the music table from another table, it will look for music.yml.
In my app, here's the setup:
staff, departments, departments_staff
Here's staff_form.yml:
Code:
name_first:
class: TextBox
label: First Name
name_last:
class: TextBox
label: Last Name
title:
class: TextBox
label: Job Title
departments: //This is the name of the related table. Codex assumes the join table will be
//named alphabetically by table name. In this case, departments_staff.
//Codex will look at departments.yml for the form_setup.
class: ManyToMany
params:
display_field: name
And departments_form.yml:
Code:
name:
class: TextBox
label: Department Name
description:
class: Editor
label: Description
attributes:
rows:10
cols:100
params:
options:
theme: advanced
plugins: fullscreen,paste,spellchecker
theme_advanced_toolbar_location: top
theme_advanced_toolbar_align: left
theme_advanced_buttons1_add: |,forecolor,fullscreen
theme_advanced_buttons3_add : spellchecker
spellchecker_languages : "+English=en"
When you want to directly access the staff or departments tables, Codex uses the *_form.yml file (no form_setup). But when you include the ManyToMany plugin, Codex looks for the *.yml file.
For example, in my code it needs to see the departments.yml:
Code:
form_setup:
name:
class: TextBox
label: Department Name
description:
class: Editor
label: Description
attributes:
rows:50
cols:100
params:
options:
theme: advanced
plugins: fullscreen,paste,spellchecker
theme_advanced_toolbar_location: top
theme_advanced_toolbar_align: left
theme_advanced_buttons1_add: |,forecolor,fullscreen
theme_advanced_buttons3_add : spellchecker
spellchecker_languages : "+English=en"
Notice that in this file, which we only access indirectly via the ManyToMany plugin (to access directly we use departments_form.yml), there is a form_setup at the top.
So it appears that Codex assumes specific naming conventions. As troubleshooting step if you get stuck, you may try only using underscores in join tables (i.e. MUSICTYPES vs. MUSIC_TYPES). All my tables are named lowercase, but I don't think that matters. Anyway, something to try if you get stuck.
Also, make sure your join tables have the field names Codex likes. For my departments_staff: id, departments_id, staff_id.
Oh, and make sure your yml files do not contain tabs--spaces only.
Good luck, Rob. I hope this was clear enough to help!